sirbrillig / phpcs-changed

🐘 Run phpcs on files and only report new warnings/errors compared to the previous version.
MIT License
31 stars 11 forks source link

Please support PHP 8.0 #36

Closed anomiex closed 3 years ago

anomiex commented 3 years ago

It looks like your PHPUnit tests all pass once dependencies are updated. You'll have some new PHPStan warnings to fix though.

Assuming you don't want to drop support for PHP 7.1, you'll need the following:

I haven't checked whether you have any code not covered by your tests.

sirbrillig commented 3 years ago

Thank you for the detailed investigation! I'm just getting around to preparing various things for PHP 8. I can easily get rid of phpunit-detailed-printer (here and in my other projects) to simplify things.

I'm wondering what the appropriate thing to do is for phpcs-changed, though because phpcs itself doesn't seem ready to support it, as discussed in this issue: https://github.com/squizlabs/PHP_CodeSniffer/issues/3182 I suppose I could update this code as you suggest since technically there is not reason it shouldn't work if phpcs does. Giving it a shot...