-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
SF4.4 - should implement method HttpClientInterface::withOptions(array $options) #40975
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
Comments
This is a new feature that will be implemented in symfony 5.3. The You should use "direct deprecation" flag (https://symfony.com/doc/current/components/phpunit_bridge.html#direct-and-indirect-deprecations) to only deal with deprecations triggered by your code. |
@jderusse the webprofiler will still show such deprecation in all projects using 4.4 |
maybe the pb is more in the sf detection of deprecated, here : normally it may ignore deprecation for the same vendor, but it does not seems to work |
Seeing same issue with new project create with --version=LTS and existing 4.4 LTS applications. I would not expect to see any deprecation's from base LTS project. This same warning is now causing Jenkins build errors for our 4.4 LTS production builds but we are unable to fix as issue is with symphony packages. IMHO Symfony 5.x changes or updates should never affect current LTS code set. 5.x is development/Beta, not LTS. |
… 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
Fixed in #41075. |
Symfony version(s) affected: 4.4.21
Description
when executing my Functional tests:
1x: Class "Symfony\Component\HttpClient\TraceableHttpClient" should implement method "Symfony\Contracts\HttpClient\HttpClientInterface::withOptions(array $options)": Returns a new instance of the client with new default options
How to reproduce
instance any http client in sf 4.4.21
Possible Solution
back port the fix that has be done in 5.3
Additional context
#40893
The text was updated successfully, but these errors were encountered: