Skip to content

Commit

Permalink
🚨 Apply PHP CS Fixer fixes (#1219)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelien authored Mar 2, 2024
1 parent b0221b6 commit e5a742b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Provider/AbstractHttpProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ abstract class AbstractHttpProvider extends AbstractProvider
/**
* @param Psr17Factory|MessageFactory|null $factory Passing a MessageFactory is @deprecated
*/
public function __construct(ClientInterface $client, MessageFactory|Psr17Factory $factory = null)
public function __construct(ClientInterface $client, MessageFactory|Psr17Factory|null $factory = null)
{
$this->client = $client;
$this->messageFactory = $factory ?? ($client instanceof RequestFactoryInterface && $client instanceof StreamFactoryInterface ? $client : new Psr17Factory());
Expand All @@ -72,7 +72,7 @@ protected function getRequest(string $url): RequestInterface
/**
* @param array<string,string|string[]> $headers
*/
protected function createRequest(string $method, string $uri, array $headers = [], string $body = null): RequestInterface
protected function createRequest(string $method, string $uri, array $headers = [], ?string $body = null): RequestInterface
{
if ($this->messageFactory instanceof MessageFactory) {
return $this->messageFactory->createRequest($method, $uri, $headers, $body);
Expand Down

0 comments on commit e5a742b

Please sign in to comment.