You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running php linter to auto fix throws the following error.
Error:
phpcbf --standard=phpcs.xml.dist --report-summary --report-source
.....PHP Fatal error: Uncaught PHP_CodeSniffer\Exceptions\RuntimeException: trim(): Passing null to parameter # 1 ($string) of type string is deprecated in /wp-coding-standards/wpcs/WordPress/Sniffs/WP/I18nSniff.php on line 194 in /vendor/squizlabs/php_codesniffer/src/Runner.php:608
Running php linter to auto fix throws the following error.
Error:
phpcbf --standard=phpcs.xml.dist --report-summary --report-source
.....PHP Fatal error: Uncaught PHP_CodeSniffer\Exceptions\RuntimeException: trim(): Passing null to parameter # 1 ($string) of type string is deprecated in /wp-coding-standards/wpcs/WordPress/Sniffs/WP/I18nSniff.php on line 194 in /vendor/squizlabs/php_codesniffer/src/Runner.php:608
Command:
npm run lint:php:fix
PHP version:
8.2.3
Related: WordPress/WordPress-Coding-Standards#2035
The text was updated successfully, but these errors were encountered: