• Resolved Thomas

    (@thehinesgaphideaway)


    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 instead
    wp-content/plugins/resmushit-image-optimizer/classes/Controller/CronController.php:148 and line 149

    Please adjust accordingly.

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Adrian

    (@adrianrus)

    Hello @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

    (@thehinesgaphideaway)

    Apologies, the warning is encountered in WordPress admin within the dashboard. No actions, just with PHP8.5 enabled.

    • This reply was modified 3 months, 2 weeks ago by Thomas.
    Plugin Support Adrian

    (@adrianrus)

    Hi again, @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

    (@thehinesgaphideaway)

    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 to reply to this topic.