Page MenuHomePhabricator

Don't call trim(null)
Closed, ResolvedPublic

Description

trim(null)

is deprecated and was removed from other parts of MediaWiki, cf. T311578.

I see the following output on https://portal.mardi4nfdi.de/wiki/Help:MathTestNative with the current master branch

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Math/src/TexVC/MMLmappings/BaseMethods.php on line 198

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Math/src/TexVC/MMLmappings/Util/MMLutil.php on line 160

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Math/src/TexVC/MMLmappings/Util/MMLutil.php on line 160

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Math/src/TexVC/MMLmappings/BaseMethods.php on line 198

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Math/src/TexVC/MMLmappings/Util/MMLutil.php on line 160

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Math/src/TexVC/MMLmappings/BaseMethods.php on line 198

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Math/src/TexVC/MMLmappings/Util/MMLutil.php on line 160

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Math/src/TexVC/MMLmappings/Util/MMLutil.php on line 160

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Math/src/TexVC/MMLmappings/BaseMethods.php on line 198

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Math/src/TexVC/MMLmappings/Util/MMLutil.php on line 160

Event Timeline

Physikerwelt renamed this task from Don't call trim with on null to Don't call trim(null).Oct 15 2023, 8:21 PM

Change 971299 had a related patch set uploaded (by Stegmujo; author: Stegmujo):

[mediawiki/extensions/Math@master] Fix calls to trim null

https://gerrit.wikimedia.org/r/971299

Change 971299 merged by jenkins-bot:

[mediawiki/extensions/Math@master] Fix calls to trim null

https://gerrit.wikimedia.org/r/971299