Skip to content

Commit

Permalink
Fix implicit nullable type to avoid PHP 8.4 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed Sep 23, 2024
1 parent d930a40 commit 77c0b71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HttpMethodsClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ final class HttpMethodsClient implements HttpMethodsClientInterface
/**
* @param RequestFactory|RequestFactoryInterface $requestFactory
*/
public function __construct(ClientInterface $httpClient, $requestFactory, StreamFactoryInterface $streamFactory = null)
public function __construct(ClientInterface $httpClient, $requestFactory, ?StreamFactoryInterface $streamFactory = null)
{
if (!$requestFactory instanceof RequestFactory && !$requestFactory instanceof RequestFactoryInterface) {
throw new \TypeError(
Expand Down

0 comments on commit 77c0b71

Please sign in to comment.