Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 77c0b71

Browse files
committedSep 23, 2024·
Fix implicit nullable type to avoid PHP 8.4 warnings
1 parent d930a40 commit 77c0b71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/HttpMethodsClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ final class HttpMethodsClient implements HttpMethodsClientInterface
3333
/**
3434
* @param RequestFactory|RequestFactoryInterface $requestFactory
3535
*/
36-
public function __construct(ClientInterface $httpClient, $requestFactory, StreamFactoryInterface $streamFactory = null)
36+
public function __construct(ClientInterface $httpClient, $requestFactory, ?StreamFactoryInterface $streamFactory = null)
3737
{
3838
if (!$requestFactory instanceof RequestFactory && !$requestFactory instanceof RequestFactoryInterface) {
3939
throw new \TypeError(

0 commit comments

Comments
 (0)
Please sign in to comment.