-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Make Sylius compatible with PHP 7.2 #8771
Conversation
First issue spotted: |
I'm not sure how to figure out what the Behat errors are. Output seems scarce. |
@stefandoorn if you check this etc/travis/run-suite after_failure "${SYLIUS_SUITE}" the build log, you can reach this: which is pretty verbose. |
Ok..
|
Anyone also knows the URL on which the imgur uploaded screenshots can be found? |
@stefandoorn looks like our imgur API key is not valid so uploading screenshots has stopped working. |
.travis.yml
Outdated
- memcached | ||
- | ||
sudo: required | ||
php: nightly |
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'd skip the nightly PHP version for now as there's still some time until PHP 7.3 gets released & builds will take more time to finish.
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.
Instead, running packages build on PHP 7.2 is a must :)
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.
Mainly added nightly for now as it might discover some issues now already that we can tackle directly. Will take it out before finalising PR.
composer.json
Outdated
@@ -88,7 +88,7 @@ | |||
"matthiasnoback/symfony-dependency-injection-test": "^1.0", | |||
"mikey179/vfsStream": "^1.6", | |||
"pamil/prophecy-common": "^0.1", | |||
"phpspec/phpspec": "^4.0", | |||
"phpspec/phpspec": "^4.0@dev", |
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.
Same change applies for every Sylius package using phpspec (packages build on PHP 7.2 would fail without this one).
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.
Alright. Need to see if this change is required at all before finalising PR.
IMO it should go for 1.0 branch as 1.0 requires PHP ^7.1, so PHP 7.2 should also be supported there. (rebase needed though then) |
As for that Payum-related errors:
Conclusion:
|
jeremykendall/php-domain-parser#204 and thephpleague/uri-src#41 have been opened, let's wait for the replies. |
fe8ad37
to
feea952
Compare
3e62bb6
to
0323fdf
Compare
0323fdf
to
b904900
Compare
@pamil Ready to review. Had to explicitly require the updated dependencies to get the proper versions installed. Build on PHP 7.3 fails due to PHP-CS-Fixer not allowing 7.3. I'm not sure we should disallow installation on PHP 7.3 due to this. |
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.
Awesome! Can you add packages
build for PHP 7.2? It's like the one for PHP 7.1 but with docs
removed from $SYLIUS_SUITE
🎉
Thanks Stefan, great job! 🥇 |
Run test suite already against PHP 7.2 to pro-actively make adjustments before PHP 7.2 is released (if possible). Not sure if this should be against 1.0 or master though ;-)