Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP linter fails with errors #246

Closed
madhusudhand opened this issue Feb 23, 2023 · 0 comments · Fixed by #251
Closed

PHP linter fails with errors #246

madhusudhand opened this issue Feb 23, 2023 · 0 comments · Fixed by #251

Comments

@madhusudhand
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant