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

Improve Symfony 5 compatibility #4685

Merged
merged 1 commit into from
Jan 1, 2020
Merged

Conversation

keradus
Copy link
Member

@keradus keradus commented Dec 2, 2019

Closes #4684

one can install contract on his own, even if he is using Sf version that does not rely on contracts,
for that, we need to check if actually Sf component relies on contract, not only the fact that contract exists.

TODO:

  • look for other places when we check that contract exists and nothing more (edit by @julienfalque: only found one in the related test, not sure it's worth the hassle)

@kbond
Copy link

kbond commented Dec 2, 2019

I can confirm this fixes the issue. Here is my reproducer: https://github.com/kbond/php-cs-fixer-2.16.1-reproducer

@SpacePossum SpacePossum added the RTM Ready To Merge label Dec 18, 2019
@SpacePossum SpacePossum added this to the 2.15.6 milestone Dec 18, 2019
@X-Coder264
Copy link

Any chance of merging and tagging a new version with this soon? The PR is opened for almost a month already and it is blocking us from properly testing our package in CI (with different Symfony and PHP versions) -> trikoder/oauth2-bundle#141

@jvocampings
Copy link

Hello

do you know when this fix will be released ?

@julienfalque julienfalque changed the title Better Sf5 compatibility Improve Symfony 5 compatibility Jan 1, 2020
@julienfalque
Copy link
Member

Thank you @keradus.

julienfalque added a commit that referenced this pull request Jan 1, 2020
This PR was merged into the 2.15 branch.

Discussion
----------

Improve Symfony 5 compatibility

Closes #4684

one can install contract on his own, even if he is using Sf version that does not rely on contracts,
for that, we need to check if actually Sf component relies on contract, not only the fact that contract exists.

TODO:
- [x] look for other places when we check that contract exists and nothing more (edit by @julienfalque: only found one in the related test, not sure it's worth the hassle)

Commits
-------

03f6fd5 Better Sf5 compatibility
@julienfalque julienfalque merged commit 03f6fd5 into PHP-CS-Fixer:2.15 Jan 1, 2020
@julienfalque julienfalque removed the RTM Ready To Merge label Jan 1, 2020
@keradus keradus deleted the 2.15_4684 branch March 23, 2020 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants