-
-
Notifications
You must be signed in to change notification settings - Fork 89
Closed as not planned
Closed as not planned
Copy link
Labels
Description
Describe the bug
Deprecation-message fpr PHP 8.4 at PHP_CodeSniffer\Tests\TestSuite::run(): Implicitly marking parameter $result as nullable is deprecated, the explicit nullable type must be used instead in composer/squizlabs/php_codesniffer/tests/TestSuite.php on line 26
To reproduce
Steps to reproduce the behavior:
git clone https://github.com/PHPCSStandards/PHP_CodeSniffer
find PHP_CodeSniffer -type f -name "*.php" -print0 | xargs -0 -I{} sh -c 'php -d error_reporting=E_ALL -d display_errors=1 -l "{}" 2>&1 | grep "Deprecated:"'
- See error message displayed
Deprecated: PHP_CodeSniffer\Tests\TestSuite::run(): Implicitly marking parameter $result as nullable is deprecated, the explicit nullable type must be used instead in PHP_CodeSniffer/tests/TestSuite.php on line 26
Expected behavior
No deprecation-message
Versions (please complete the following information)
Operating System | Rocky Linux 9.4 |
PHP version | 8.4 |
PHP_CodeSniffer version | 3.12 / master |
Standard | - |
Install type | composer local |
Please confirm:
- I have searched the issue list and am not opening a duplicate issue.
- I confirm that this bug is a bug in PHP_CodeSniffer and not in one of the external standards.
- I have verified the issue still exists in the
master
branch of PHP_CodeSniffer.