Skip to content
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

Merged
merged 18 commits into from
Oct 4, 2022

Conversation

oradwell
Copy link
Owner

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

@coveralls
Copy link

coveralls commented Sep 30, 2022

Coverage Status

Coverage increased (+8.2%) to 98.095% when pulling 984cea7 on drop-support-php-7.0-phpunit-6 into cc9f539 on master.

.gitignore Outdated Show resolved Hide resolved
.gitignore Show resolved Hide resolved
->in(__DIR__)
;

$config = new PhpCsFixer\Config();
Copy link
Contributor

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?

Copy link
Owner Author

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

.travis.yml Outdated Show resolved Hide resolved
composer.json Outdated Show resolved Hide resolved
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",
Copy link
Contributor

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

Copy link
Owner Author

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

@oradwell oradwell merged commit 9db4d08 into master Oct 4, 2022
@oradwell oradwell deleted the drop-support-php-7.0-phpunit-6 branch October 4, 2022 19:55
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants