Skip to content

Commit 0f7eee3

Browse files
committed
Use Http\Discovery\Psr17FactoryDiscovery for discovery
Http\Discovery\MessageFactoryDiscovery is deprecated and should not be used anymore.
1 parent 543b47a commit 0f7eee3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ResponseBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Swis\Http\Fixture;
44

5-
use Http\Discovery\MessageFactoryDiscovery;
5+
use Http\Discovery\Psr17FactoryDiscovery;
66
use Http\Message\ResponseFactory;
77
use Psr\Http\Message\RequestInterface;
88
use Psr\Http\Message\ResponseInterface;
@@ -54,7 +54,7 @@ public function __construct(string $fixturesPath, array $domainAliases = [], Res
5454
{
5555
$this->fixturesPath = $fixturesPath;
5656
$this->domainAliases = $domainAliases;
57-
$this->responseFactory = $responseFactory ?: MessageFactoryDiscovery::find();
57+
$this->responseFactory = $responseFactory ?: Psr17FactoryDiscovery::findResponseFactory();
5858
}
5959

6060
/**

0 commit comments

Comments
 (0)