• Resolved Aaron

    (@aaron13100)


    Hello,

    I guess this warning message only happens with PHP 8.2.

    Deprecated: Creation of dynamic property BNFW::$translations is deprecated in /wp-content/plugins/bnfw/bnfw.php on line 89

    As far as I can tell, the “translations” property isn’t accessed anywhere else except for that one function, so I guess it can just be a local variable instead.

    public function load_textdomain() {
    // Load localization domain.
    $translations = dirname( plugin_basename( FILE ) ) . '/languages/';
    load_plugin_textdomain( 'bnfw', false, $translations );
    }


    I didn’t test that.

    thanks

    • This topic was modified 1 year, 1 month ago by Aaron.
Viewing 1 replies (of 1 total)
  • Plugin Author bnfw

    (@voltronik)

    Hi @aaron13100,
    Thanks for your message and for making me aware of this.

    At this time BNFW is tested up to PHP 8.1 but I’ll be adding full support for PHP 8.2 in a coming update. As this is only a warning about a deprecated function, you can safely ignore this for now.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP 8.2 warning message’ is closed to new replies.