8000 Deprecation Notice Symfony\Component\HttpClient\ScopingHttpClient · Issue #40996 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Deprecation Notice Symfony\Component\HttpClient\ScopingHttpClient #40996
Closed
@robbertstevens

Description

@robbertstevens

Symfony version(s) affected: 5.2.*

Description
When I have run a console command I get the message

User Deprecated: Class "Symfony\Component\HttpClient\ScopingHttpClient" should implement method "Symfony\Contracts\HttpClient\HttpClientInterface::withOptions(array $options)": Returns a new instance of the client with new default options.

When I look in the Symfony\Component\HttpClient\ScopingHttpClient class it indeed doesn't have the ::withOptions method.

How to reproduce
I think you can reproduce it by requiring the symfony/http-client@5.2.6 package

Possible Solution
I guess it's adding this method

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0