Skip to content

Commit

Permalink
fix: buzz response factory (#250)
Browse files Browse the repository at this point in the history
Fixes the instantiation of Buzz client to use the new `Psr17FactoryDiscovery` instead of the deprecated `MessageFactoryDiscovery`.
  • Loading branch information
mnavarrocarter authored Jul 11, 2023
1 parent 1856a11 commit 19db1df
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Strategy/CommonClassesStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
use Http\Client\Socket\Client as Socket;
use Http\Discovery\ClassDiscovery;
use Http\Discovery\Exception\NotFoundException;
use Http\Discovery\MessageFactoryDiscovery;
use Http\Discovery\Psr17FactoryDiscovery;
use Http\Message\MessageFactory;
use Http\Message\MessageFactory\DiactorosMessageFactory;
Expand Down Expand Up @@ -146,7 +145,7 @@ private static function getPsr18Candidates()

public static function buzzInstantiate()
{
return new \Buzz\Client\FileGetContents(MessageFactoryDiscovery::find());
return new \Buzz\Client\FileGetContents(Psr17FactoryDiscovery::findResponseFactory());
}

public static function symfonyPsr18Instantiate()
Expand Down

0 comments on commit 19db1df

Please sign in to comment.