• Resolved tripsoverpoland

    (@tripsoverpoland)


    Hi everyone,

    I’m currently running the “Page Views Count” plugin on WordPress 7.0 with PHP 8.5.

    I noticed a PHP Deprecated warning in my error logs caused by the plugin: PHP Deprecated: Non-canonical cast (boolean) is deprecated, use the (bool) cast instead in .../admin/admin-ui.php on line 87

    It’s a simple fix. Could you please update the code in admin/admin-ui.php (line 87) from (boolean) to (bool)?

    Current code: // line 87 (approx) $variable = (boolean) $value;

    Suggested fix: $variable = (bool) $value;

    This small change ensures full compatibility with the latest PHP 8.x versions. Thanks for maintaining this useful plugin!

    Best regards,

Viewing 1 replies (of 1 total)
  • Plugin Contributor Nguyen Tuan

    (@nguyencongtuan)

    Hi

    Thanks for the report. We’ve just released a new version that makes it compatible with PHP 8.5.


    Regards,
    Nguyen

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.