Skip to content

[HttpClient] HttplugClient class implements Http\Client\HttpClient that is deprecated since version 2.4, use Psr\Http\Client\ClientInterface instead #50035

Closed
@ruudk

Description

@ruudk

Symfony version(s) affected

6.2.7

Description

After trying to upgrade the following:

Prod Packages Operation Base Target Link
php-http/client-common Upgraded 2.6.0 2.6.1 Compare
php-http/httplug Upgraded 2.3.0 2.4.0 Compare
php-http/message Upgraded 1.13.0 1.14.0 Compare
php-http/message-factory Upgraded v1.0.2 1.1.0 Compare

I notice these deprecations in my tests:

  1x: The "Symfony\Component\HttpClient\HttplugClient" class implements "Http\Client\HttpClient" that is deprecated since version 2.4, use Psr\Http\Client\ClientInterface instead; see https://www.php-fig.org/psr/psr-18/.

  1x: The "Symfony\Component\HttpClient\HttplugClient" class implements "Http\Message\RequestFactory" that is deprecated since version 1.1, use Psr\Http\Message\RequestFactoryInterface instead.

  1x: The "Symfony\Component\HttpClient\HttplugClient" class implements "Http\Message\StreamFactory" that is deprecated since version 1.1, use Psr\Http\Message\StreamFactoryInterface instead.

  1x: The "Symfony\Component\HttpClient\HttplugClient" class implements "Http\Message\UriFactory" that is deprecated since version 1.1, use Psr\Http\Message\UriFactoryInterface instead.

How to reproduce

See composer requirements above.

Possible Solution

No response

Additional Context

No response

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