-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Milestone
Description
Describe the bug
When running the phpcs on a WordPress plugin, I get this error:
PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject)
of type string is deprecated in ../squizlabs/php_codesniffer/src/Config.php on line 228
Deprecated: preg_match(): Passing null to parameter #2 ($subject)
of type string is deprecated in ../squizlabs/php_codesniffer/src/Config.php on line 228
....... 7 / 7 (100%)
Expected behavior
No error showing up
Versions (please complete the following information):
- OS: MacOS
- PHP: 8.2
- PHP_CodeSniffer version 3.7.1 (stable) by Squiz (http://www.squiz.net)
- Standard: WordPress
Additional context
stty --version
stty (GNU coreutils) 8.23
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.