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
880 stars 54 forks source link

PHP 8.4 compatibility #573

Closed andypost closed 1 month ago

andypost commented 1 month ago

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

This is only file that needs fixes, tested using

docker run --rm -v $(pwd):/mnt -w /mnt php:8.4.0alpha2-cli-alpine find . -type f -name '*.php' -exec php -l {} \;

Description

Suggested changelog entry

Related issues/external references

Fixes #

Types of changes

PR checklist

derrabus commented 1 month ago

This change is incompatible with PHP < 7.1.

jrfnl commented 1 month ago

Closing as invalid.

The PHPCS test suite was already fixed months ago in #404. This file is only used with PHP < 7.1 and PHPUnit < 7, so should NOT be changed.

https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/9e73d47881eac6f66b4992d9cc53a8e3396b0897/tests/AllTests.php#L15-L30

andypost commented 1 month ago

Thank you, I missed that this file is not involved in never testing