awesomemotive / wpforms-phpcs

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

Fix phpcs locally with PHP 8.2 #44

Closed kagg-design closed 7 months ago

kagg-design commented 7 months ago

Description

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)

Motivation and Context

Fix #43.