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

Support PHP 8 #8

Merged
merged 10 commits into from
Dec 17, 2020
Merged

Support PHP 8 #8

merged 10 commits into from
Dec 17, 2020

Conversation

kevinpapst
Copy link
Contributor

This PR adds very basic PHP 8 support.

All credits go to @GuilhemN who added that code to FOSRestBundle in the last release, see here: FriendsOfSymfony/FOSRestBundle@2.8.3...2.8.4 (or the original rfc)

I changed the check for if (defined('T_NAME_QUALIFIED')) { with a check for the PHP Version, becuase this is more failsafe.
There are at least 2 projects outside, which do define this constant in user land code, see here and here.

Open:

  • Squash commits
  • Travis

@alexander-schranz
Copy link
Member

@kevinpapst thx for having a look at this. I did upgrade the tests. Lets hope they will now also run on travis. We will replace travis soon with github actions, so we will not invest to many time into travis here.

@alexander-schranz alexander-schranz mentioned this pull request Dec 17, 2020
52 tasks
@alexander-schranz alexander-schranz added the enhancement New feature or request label Dec 17, 2020
@kevinpapst
Copy link
Contributor Author

Wow, that escalated quickly 😁
Sorry for not looking deeper, I just wanted to start the discussion. So: thanks for taking over!

I guess the time of free Travis jobs is over - it is running for more than an hour now. Insane...

@alexander-schranz
Copy link
Member

@kevinpapst seems like the free time is really over: https://travis-ci.com/github/handcraftedinthealps/RestRoutingBundle/builds/209334957

Did test it locally with php8 and the test did finish there so I will merge and tag this.

Thank you for adding PHP8 Support here!

@alexander-schranz alexander-schranz merged commit b7b75d4 into handcraftedinthealps:master Dec 17, 2020
@alexander-schranz
Copy link
Member

alexander-schranz commented Dec 17, 2020

Tagged as 1.0.1

@kevinpapst kevinpapst mentioned this pull request Dec 17, 2020
10 tasks
@kevinpapst
Copy link
Contributor Author

I tested the new tag (but not your test code changes) locally with 7.4 and 8.0 and in Github actions with 7.2/7.3/7.4/8.0

Works. Thanks for the quick merge 🎉

@kevinpapst kevinpapst deleted the php8 branch December 17, 2020 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants