• Resolved Mikhail Alferov

    (@malferov)


    When declaring a function or a method, adding a required parameter after optional parameters is deprecated since PHP 8.0.

    PHP Deprecated: Required parameter $optinAction follows optional parameter $type in /yet-another-related-posts-plugin/classes/YARPP_Admin.php on line 404

    Need to check the code in the declaration of functions and methods and their calls.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Michael Nelson

    (@mnelson4)

    Thanks @malferov, we haven’t reviewed YARPP for PHP 8 compatibility yet, but this change sounds really straightforward. We’ll try to update this thread once we release a fix. Was this the only warning you got on PHP 8?

    Thread Starter Mikhail Alferov

    (@malferov)

    @mnelson4, yes, once.

    Plugin Support Michael Nelson

    (@mnelson4)

    ok FYI we’ve got some code that fixes this. We’ll try to include it in the next release.

    Plugin Support Michael Nelson

    (@mnelson4)

    Hi @malferov, YARPP 5.12.0 was released just a couple minutes ago and should address the PHP 8 issue you reported.
    For now I’m closing this thread, but let’s reopen if there’s anything else PHP 8-related you notice.

    Thread Starter Mikhail Alferov

    (@malferov)

    @mnelson4, Great!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP 8 Deprecated code’ is closed to new replies.