• Resolved Malae

    (@malae)


    Hello,

    I have upgraded to PHP 8.3 and have the following deprecated PHP warning:

    PHP Deprecated: shiftnav_html_atts(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /wp-content/plugins/shiftnav-responsive-mobile-menu/includes/functions.php on line 714

    I would appreciate your fixing this.

Viewing 1 replies (of 1 total)
  • Plugin Author sevenspark

    (@sevenspark)

    Hi @malae ,

    Thanks for letting me know. You can fix this by making a simple change in that functions.php file on line 714. Just change the function signature from:

    function shiftnav_html_atts(array $attr, callable $callback = null)

    to:

    function shiftnav_html_atts(array $attr, ?callable $callback = null)

    (add a ? before callable)

    and that should resolve the deprecation notice. I’ll also include this with the next update.

    Thanks!

    Chris

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.