-
Notifications
You must be signed in to change notification settings - Fork 222
Common project code upgrade #695
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
Common project code upgrade #695
Conversation
a1f365e
to
decb608
Compare
@mcg-web This PR is ready to me merged. It would be nice if we merge it ASAP, because it affects almost all files in the project. |
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.
here a first review on 78/282 files. This PR is huge so it review can't be faster sorry.
Allowing webonyx/graphql-php to the latest version should be done from 0.11, 1.0 version will not be release before November this make this a very long run. Same for symfony 5.1. |
I didn't quite understand. Do I need to change something? |
@murtukov this mean that we should first allow this version of webonyx/graphql-php and Symfony 5.1 in 0.11 so this change should not be integrated directly to this branch. |
|
Active support means that we maintain the project until we stop supports. 0.11 already supports Symfony 5.*. This doc is outdated, the true reference is composer.json anyway. |
@mcg-web what about the PHP requirements? https://github.com/webonyx/graphql-php/blob/master/UPGRADE.md#upgrade-v012x--v013x |
Composer choice between the version that match your php version. 0.11 doesn't force to use 0.13 if your php version is compatible you can use it. The bundle required php minimum 5.6 so 7.1 also answer to this need. |
@mcg-web Ok, I understand now. Will you update webonyx version in previous branches? |
I started working on this from 0.11, missing 8 tests to make green. |
0c748f5
to
7fa9265
Compare
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.
This LGTM, can you re-organize your commits so we can merge this please ? Thanks for this PR 💪
- Upgrade PHPStan - Uninstall deprecated phpstan-shim - Remove all unmatched ignored errors from phpstan-baseline.neon - Rename phpstan.neon.dist (remove .dist suffix) - Upgrade PHPUnit to the latest - Change deprecated test methods accordingly - Update all Symfony version constraints to ^4.4 || ^5.0 - Configure new PHP-CS-Fixer rules: - Remove all unnecessary annotations Manually go through all files and change/fix/tweak code, add type-hints wherever possible.
7fa9265
to
2a97706
Compare
@mcg-web done 😎 |
When can we expect to use the new |
@deeky666 can you open an issue please ? So we can have some information on the version you using and give you the best answer to your question. |
👍 thanks! I'll be watching the PR then. |
|
General upgrade of the whole project's code.
Upgrade PHPStan to the latest version
Upgrade PHPUnit to the latest version
Change deprecated test methods accordingly
Configure new PHP-CS-Fixer rules:
I also manually went through all files and changed/fixed/tweaked code, added type-hints wherever possible.
Upgrade
webonyx/graphql-php
to the latest versionChange version ranges for Symfony packages:
Change requirements in
composer.json
for all Symfony packages from^4.3 || ^5.0
to4.4 - 5.1
, which is equal to>=4.4.0 <5.2
. Also add 2 additional jobs in.travis.yml
to execute tests with Symfony 5.0 and Symfony 5.1.Note:
With the new PHPStan version errors can be ignored directly in the code with comments, e.g.: