Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test against PHP 8.0 #55

Merged
merged 3 commits into from
May 23, 2021
Merged

Test against PHP 8.0 #55

merged 3 commits into from
May 23, 2021

Conversation

jbboehr
Copy link
Contributor

@jbboehr jbboehr commented Apr 4, 2021

  • Upgrade doctrine/coding-standard to 8.2
  • Upgrade phpunit to 8.5
  • Update psalm to 4.7
  • Drop PHP 7.1 from TravisCI

I took the liberty of ignoring a few rules and fixing a few others due to changes in the new coding standards version, feel free to request changes or whatever.

* Upgrade doctrine/coding-standard to 8.2
* Upgrade phpunit to 8.5
* Update psalm to 4.7
* Drop PHP 7.1 from TravisCI
@kevinsmith
Copy link
Contributor

Hey @jbboehr, thanks for the contribution!

Unfortunately, we can't drop PHP 7.1 compatibility yet since that would require a major version bump, and since we need to maintain PHP 7.1 compatibility, we also can't upgrade to PHPUnit 8+ in the Relay 2.x branch. Could you please revert the changes that drop PHP 7.1 from the CI config and bumped the PHPUnit version number?

@cxj
Copy link
Contributor

cxj commented May 22, 2021

Do we need a 3.x branch to drop 7.1? It's been End-Of-Life since 2019.

@kevinsmith
Copy link
Contributor

Yup, any BC-breaking changes will need to go in a 3.x branch. We should probably plan that separately.

I was just trying to decouple the changes that could happen immediately versus the ones that would require a version bump. I'm happy to consider and merge in anything that's compatible with the 2.x branch for now. If the purpose of this PR is to add PHP 8 compatibility (even if it's just to the CI suite), then it may need to wait until we're ready to begin work on 3.x.

@kevinsmith
Copy link
Contributor

To expand on this... Given the title, I realize the original purpose of this PR was to introduce PHP 8 compatibility, but the bulk of the work has been toward upgrading Doctrine Coding Standard. That is something we could merge into 2.x relatively soon, as long as we remove the separate changes that would require a version bump.

@jbboehr
Copy link
Contributor Author

jbboehr commented May 22, 2021

There were no code changes preventing 7.1 support, only the fact that there was no single release of phpunit that supported PHP 7.1 and PHP 8.0. I've expanded the version constraint on phpunit which will allow continued testing on 7.1.

@kevinsmith
Copy link
Contributor

Awesome, thank you @jbboehr! Merging this in...

@kevinsmith kevinsmith merged commit 7606d88 into relayphp:2.x May 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants