Skip to content

Commit a108797

Browse files
committed
Leverage array_is_list(), get_debug_type(), is_countable(), is_iterable(), str_contains() and str_starts_with()
1 parent aad5d0d commit a108797

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MockHttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function request(string $method, string $url, array $options = []): Respo
8181
++$this->requestsCount;
8282

8383
if (!$response instanceof ResponseInterface) {
84-
throw new TransportException(sprintf('The response factory passed to MockHttpClient must return/yield an instance of ResponseInterface, "%s" given.', \is_object($response) ? \get_class($response) : \gettype($response)));
84+
throw new TransportException(sprintf('The response factory passed to MockHttpClient must return/yield an instance of ResponseInterface, "%s" given.', get_debug_type($response)));
8585
}
8686

8787
return MockResponse::fromRequest($method, $url, $options, $response);

0 commit comments

Comments
 (0)