Skip to content

Deprecation-message for PHP 8.4 at PHP_CodeSniffer\Tests\TestSuite::run() #903

@alexgit2k

Description

@alexgit2k

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:

  1. git clone https://github.com/PHPCSStandards/PHP_CodeSniffer
  2. 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:"'
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions