Skip to content

Commit 982b371

Browse files
committed
[php] Fix deprecation warning when running integration tests
OpenAPI\Client\FakeHttpClient::setResponse(): Implicitly marking parameter $response as nullable is deprecated, the explicit nullable type must be used instead
1 parent dd80d1a commit 982b371

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

samples/client/petstore/php/OpenAPIClient-php/tests/FakeHttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function getLastRequest()
2727
/**
2828
* @param null|ResponseInterface $response
2929
*/
30-
public function setResponse(ResponseInterface $response = null)
30+
public function setResponse(?ResponseInterface $response = null)
3131
{
3232
$this->response = $response;
3333
}

0 commit comments

Comments
 (0)