When I try to run composer cs locally with PHP 8.2 for these lib files, I have the following error:
An error that occurs during processing; checking has been aborted. | | The error message was: trim(): Passing null to parameter #1 | | ($string) of type string is deprecated in | | D:\Sites\Projects\wpforms-phpcs\vendor\phpcompatibility\php-compatibility\PHPCompatibility\Sniff.php | | on line 131 | | The error originated in the .PHPCompatibility. sniff on line 131. | | (Internal.Exception)
Expected Behavior
The phpcs should work locally with PHP 8.2.
Current Behavior
When I try to run
composer cs
locally with PHP 8.2 for these lib files, I have the following error:An error that occurs during processing; checking has been aborted. | | The error message was: trim(): Passing null to parameter #1 | | ($string) of type string is deprecated in | | D:\Sites\Projects\wpforms-phpcs\vendor\phpcompatibility\php-compatibility\PHPCompatibility\Sniff.php | | on line 131 | | The error originated in the .PHPCompatibility. sniff on line 131. | | (Internal.Exception)