Problem with "Use of 'self' in callables is deprecated" in WP-Discourse

Hello ! I opened WP_DEBUG to test some functions, and see this message:

Deprecated : Use of “self” in callables is deprecated in /wp-content/plugins/wp-discourse/lib/discourse.php on line 225

This message shows in PHP8.2 and 8.3. It’s fine with PHP below&include 8.1.

Is there anything we could do to resolve this? I tend to use PHP8.3 as it shows better performance than 8.1. Thank you very much!

1 Like

Hello,

No worry; it’s only a deprecation and will be removed in PHP 9 (which is far in the future).
You still can use PHP 8.3. :+1:

Simon,

I believe this should be used now: self::class . 'register_text_translations'

4 Likes

Thank you very much!

Just to share that someone made a PR a few months ago to fix this:

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.