awesomemotive / wpforms-phpcs

PHP Coding Standards used by the WPForms team.
https://wpforms.com
GNU General Public License v2.0
12 stars 1 forks source link

Fix phpcs locally with PHP 8.2 #43

Closed kagg-design closed 8 months ago

kagg-design commented 8 months ago

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)