• Resolved ispreview

    (@ispreview)


    I’ve just started testing PHP 8.4 and caught a deprecated warning, which hopefully you can fix.

    Deprecated: wpp_get_views(): Implicitly marking parameter $id as nullable is deprecated, the explicit nullable type must be used instead in /wp-content/plugins/wordpress-popular-posts/src/template-tags.php on line 17

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hey @ispreview,

    Thanks for the heads up! That’s super easy to fix, however since WPP still supports PHP 7.2 -at the time of writing, will change to 7.3 soon- I’d need to make sure that fixing this deprecation notice doesn’t break things for people using older versions of PHP.

    Nonetheless, once again thanks for contributing!

    Plugin Author Hector Cabrera

    (@hcabrera)

    Quick update: tested the fix with PHP 7.3 (the new minimum required version after the next WPP release) and everything looks good.

    I also tested it with 8.4 to confirm that the deprecation notice is gone 🙂

    The new release should be out soon~ish so please make sure to upgrade once it’s available.

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

The topic ‘PHP 8.4 Deprecated Warning’ is closed to new replies.