Page MenuHomePhorge

Fix PHP 8.1 "ltrim(null)" exception creating a Nuance Source
ClosedPublic

Authored by aklapper on Feb 18 2025, 23:29.
Tags
None
Referenced Files
F3720171: D25890.1745700222.diff
Fri, Apr 25, 20:43
F3717115: D25890.1745695345.diff
Fri, Apr 25, 19:22
F3711839: D25890.1745659716.diff
Fri, Apr 25, 09:28
F3709167: D25890.1745644379.diff
Fri, Apr 25, 05:12
F3702920: D25890.1745629129.diff
Fri, Apr 25, 00:58
F3695605: D25890.1745594116.diff
Thu, Apr 24, 15:15
F3605126: D25890.1745252586.diff
Sun, Apr 20, 16:23
F3603246: D25890.1745165411.diff
Sat, Apr 19, 16:10

Details

Summary

Passing null as the first parameter to ltrim() is deprecated since PHP 8.1.
Thus change the optional parameter of the function from null to an empty string.

ERROR 8192: ltrim(): Passing null to parameter #1 ($string) of type string is deprecated at [/var/www/html/phorge/src/applications/nuance/source/NuanceSourceDefinition.php:211]

Closes T16000

Test Plan
  • Create a Nuance queue at /nuance/queue/edit/form/default/
  • Create a Nuance "Web Form" type source at /nuance/source/edit/form/default/

Diff Detail

Repository
rP Phorge
Lint
Lint Not Applicable
Unit
Tests Not Applicable