PHPCSStandards / PHP_CodeSniffer

PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.
BSD 3-Clause "New" or "Revised" License
881 stars 54 forks source link

Tests: fix for PHP 8.4 deprecation of implicitly nullable types #404

Closed jrfnl closed 6 months ago

jrfnl commented 6 months ago

Description

This should work for now. PHPCS 4.0 will remove the whole outdated TestSuite setup as per #25, so by that time, the problem is gone completely.

Ref: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types

Note: the tests won't pass on PHP 8.4 yet as PHPUnit itself (and its dependencies) still need to release a version which fixes similar issues in PHPUnit itself.

Suggested changelog entry

Test framework: fix PHP 8.4 deprecation