squizlabs / PHP_CodeSniffer

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

PHPUnit 10 Support and Refactor of code required #3950

Closed nishant04412 closed 5 months ago

nishant04412 commented 5 months ago

Feature Request

Many applications are already working on PHPUnit 10 including mine and it uses PHP_CodeSniffer for checking PHP coding standards.

My request is to release new version with PHPUnit 10 support.

Currently there is a file AllSniffs which we are using with our code but it has code related to suite() method which is removed from PHPUnit 10. I believe this has to be refactored completely in order to work as intended.

Additional context

PHPUnit 10+ versions drops support for suite() method as suggested in https://github.com/sebastianbergmann/phpunit/commit/36354a9cdc69ecabd20ac505b07541cfdde50aaa

jrfnl commented 5 months ago

This repo is abandoned. Please do not open issues here anymore. See #3932. New issues can be opened in the successor repo.

Also note: the above is a known issue and will be addressed in the PHPCS 4.0 release.

nishant04412 commented 5 months ago

Thank you for the update @jrfnl. Will wait for PHPCS 4.0 release then.

jrfnl commented 4 months ago

FYI: related issue which can be followed to keep informed of the status: https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/25