Page MenuHomePhabricator

Deprecation notice : trim(): Passing null to parameter #1 ($string) of type string is deprecated
Closed, ResolvedPublic

Description

Hello,

There's a deprecation notice that spits out on PHP 8.2.13 :

PHP Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198

Event Timeline

What precisely did you do to raise this error? Which version of Variables are you using?

I believe that this can not be caused within Variables, but only by bad callers. (Like Loops and @Universal_Omega s Universal-Omega/DynamicPageList3.

I believe this is fixed via DPL3 now, but not Loops, but DPL3 should be...

Tbh, I have not checked in detail whether Loops may present this issue.

Hello, let me get back to you with more information - I might reproduce locally and check the calling stack. But yes, we are using loops, DPL3 and all sort of stuff...!

MW 1.39.6
PHP 8.1.27

updating DPL3 to b0483e04acb5e64a06cb6c0030ec30d1f587fef4 which includes version 3.5.2 fixed this issue for me

MW 1.39.6
PHP 8.1.27

updating DPL3 to b0483e04acb5e64a06cb6c0030ec30d1f587fef4 which includes version 3.5.2 fixed this issue for me

Thanks very much for confirming... I was unsure if this had fully been fixed, but it seems so, so thanks for confirming that.

MGChecker assigned this task to Universal_Omega.

@BertrandGorge Seems to be resolved, if you still experience this issue after upgrading, please reopen.

Yes I confirm the latest version of DPL (master branch) fixes the issue. Should I point to master then, and not REL1_39 ?