-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Drop support for PHP 7.0 and PHPUnit 6 #43
Conversation
->in(__DIR__) | ||
; | ||
|
||
$config = new PhpCsFixer\Config(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a big deal neither but in my experience introducing a CS fixer has always been quite noisy, might be worth extracting it to a different PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's still small enough, so I'll leave it. I'll keep it in mind for the next time. I only added it, so we actually start using some PHP 7.1 features
composer.json
Outdated
"php": "^7.0 || ^8.0", | ||
"phpunit/phpunit": "^6.0 || ^7.0 || ^8.0 || ^9.0", | ||
"symfony/console": "^2.7 || ^3.0 || ^4.0 || ^5.0 || ^6.0" | ||
"php": ">=7.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a reason to not drop even lower the versions? 7.4 is going EOL soon so you could put it as minimum and still be considered very lenient in terms of support
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't find any compatibility code necessary for PHP versions between 7.1 and 7.4. PHP 8.0 will bring the "mixed" type, so I guess we can drop more versions when PHP 8.0 is as popular as PHP 7.4 is now
As suggested by @theofidry, dropping support for PHP 7.0 and PHPUnit 6
Thanks to this, we can remove some compatibility code and use PHP 7.1 features