Solved php 8.1 compatibility when using CLI --help

This topic has been solved
X

Xon

Guest
Running the command php cmd.php list --help spews out a number of warnings (6 I think) about null being passed to various things;

Code:

Code:
ErrorException: [E_DEPRECATED] strlen(): Passing null to parameter #1 ($string) of type string is deprecated src/vendor/symfony/console/Descriptor/TextDescriptor.php:120
Generated by: Unknown account Apr 4, 2022 at 11:51 AM

#0 src/vendor/symfony/console/Descriptor/TextDescriptor.php(120): XF::handlePhpError(8192, '[E_DEPRECATED] ...', '/var/www/sites/...', 120)
#1...

Read more

Continue reading...