PHP 8.2 warning message
-
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
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘PHP 8.2 warning message’ is closed to new replies.