8000 [HttpClient] Avoid installation of latest contracts as it's not compatible by lyrixx · Pull Request #41001 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[HttpClient] Avoid installation of latest contracts as it's not compatible #41001

8000 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

Closed
wants to merge 1 commit into from

Conversation

lyrixx
Copy link
Member
@lyrixx lyrixx commented Apr 30, 2021
Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets ref #40975 #40996 #40893
License MIT
Doc PR

To be reverted on 5.x (5.3)

Fixes #40975

@OskarStark
Copy link
Contributor

I added a Fixes... for the open ticket to the PR header

@@ -23,7 +23,7 @@
"require": {
"php": ">=7.1.3",
"psr/log": "^1.0",
"symfony/http-client-contracts": "^1.1.10|^2",
"symfony/http-client-contracts": "^1.1.10|<2.4",
Copy link
Member

Choose a reason 8000 for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be ^1.1.10|>=2,<2.4. Otherwise, the <2.4 constraint allows to install 1.0.0

@nicolas-grekas
Copy link
Member

HttpClient is compatible with Contracts 2.4. It "just" triggers a deprecation when used with it, but that can be ignored.

I think we should try patching DebubClassLoader instead.

@lyrixx
Copy link
Member Author
lyrixx commented Apr 30, 2021

It just trigger deprecation notice because we ensure to not break BC. That's why we added @method annotation, and not the method directly. So indeed it's compatibly because ut "just" trigger deprecation. And there is no way to avoid them on 4.4

@nicolas-grekas
Copy link
Member

Closing in favor of #41075
Thanks for the patch!

derrabus added a commit that referenced this pull request May 3, 2021
… for `Symfony\*` classes unless symfony/symfony is being tested (nicolas-grekas)

This PR was merged into the 4.4 branch.

Discussion
----------

[ErrorHandler] Skip "same vendor" ``@method`` deprecations for `Symfony\*` classes unless symfony/symfony is being tested

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | ref #40975 #40996 #40893
| License       | MIT
| Doc PR        |

Replaces #41001

Commits
-------

7a1a910 [ErrorHandler] Skip "same vendor" ``@method`` deprecations for `Symfony\*` classes unless symfony/symfony is being tested
@lyrixx lyrixx deleted the http-client-contract branch September 3, 2021 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0