Title: PHP8.5 Support
Last modified: December 31, 2025

---

# PHP8.5 Support

 *  Resolved [Thomas](https://wordpress.org/support/users/thehinesgaphideaway/)
 * (@thehinesgaphideaway)
 * [5 months, 1 week ago](https://wordpress.org/support/topic/php8-5-support/)
 * Hello,
 * As of December 2025, PHP8.5 has now been released. As such, support for PHP8.5
   will be needed in order for sites and plugins to take advantage of features and
   performance gains. As I am now testing our own sites for PHP8.5, I am taking 
   the time to report any errors or warnings.
   For Resmushit, I see:Non-canonical
   cast (boolean) is deprecated, use the (bool) cast insteadwp-content/plugins/resmushit-
   image-optimizer/classes/Controller/CronController.php:148 and line 149Please 
   adjust accordingly.
 * Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [Adrian](https://wordpress.org/support/users/adrianrus/)
 * (@adrianrus)
 * [5 months, 1 week ago](https://wordpress.org/support/topic/php8-5-support/#post-18771715)
 * Hello [@thehinesgaphideaway](https://wordpress.org/support/users/thehinesgaphideaway/),
 * Thank you for reporting this! Could you please confirm where you encountered 
   this error, is it appearing in your website’s error_log, or did you find it elsewhere?
 * Also, were you performing any specific actions in the plugin when the error occurred,
   or was it simply active?
 * PHP 8.5 is extremely new, and we haven’t had the opportunity to test compatibility
   yet. We’ll prioritize fixing this as soon as possible!
 * All the best,
 *  Thread Starter [Thomas](https://wordpress.org/support/users/thehinesgaphideaway/)
 * (@thehinesgaphideaway)
 * [5 months, 1 week ago](https://wordpress.org/support/topic/php8-5-support/#post-18771717)
 * Apologies, the warning is encountered in WordPress admin within the dashboard.
   No actions, just with PHP8.5 enabled.
    -  This reply was modified 5 months, 1 week ago by [Thomas](https://wordpress.org/support/users/thehinesgaphideaway/).
 *  Plugin Support [Adrian](https://wordpress.org/support/users/adrianrus/)
 * (@adrianrus)
 * [5 months ago](https://wordpress.org/support/topic/php8-5-support/#post-18777773)
 * Hi again, [@thehinesgaphideaway](https://wordpress.org/support/users/thehinesgaphideaway/),
 * Could you please attach a screenshot of where exactly you’re seeing this notice?
 * I’m asking because I’ve run some tests on PHP 8.5, optimized a few images and
   so far I’m unable to reproduce the notice.
 * All the best,
 *  Thread Starter [Thomas](https://wordpress.org/support/users/thehinesgaphideaway/)
 * (@thehinesgaphideaway)
 * [5 months ago](https://wordpress.org/support/topic/php8-5-support/#post-18778172)
 * Adrian,
 * You are correct. I no longer see this warning. There had to be a specific case
   but I cannot recreate it. Should I see it again, I will resubmit it, along with
   a robust test case.
 * Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp8-5-support%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/resmushit-image-optimizer/assets/icon-256x256.png?rev=3049668)
 * [reSmush.it : The original free image compressor and optimizer plugin](https://wordpress.org/plugins/resmushit-image-optimizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/resmushit-image-optimizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/resmushit-image-optimizer/)
 * [Active Topics](https://wordpress.org/support/plugin/resmushit-image-optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/resmushit-image-optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/resmushit-image-optimizer/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Thomas](https://wordpress.org/support/users/thehinesgaphideaway/)
 * Last activity: [5 months ago](https://wordpress.org/support/topic/php8-5-support/#post-18778172)
 * Status: resolved