diff --git a/CurlHttpClient.php b/CurlHttpClient.php index 9f9fbd0..ddc7f9d 100644 --- a/CurlHttpClient.php +++ b/CurlHttpClient.php @@ -319,7 +319,7 @@ public function stream($responses, float $timeout = null): ResponseStreamInterfa if ($responses instanceof CurlResponse) { $responses = [$responses]; } elseif (!is_iterable($responses)) { - throw new \TypeError(sprintf('%s() expects parameter 1 to be an iterable of CurlResponse objects, "%s" given.', __METHOD__, \is_object($responses) ? \get_class($responses) : \gettype($responses))); + throw new \TypeError(sprintf('"%s()" expects parameter 1 to be an iterable of CurlResponse objects, "%s" given.', __METHOD__, \is_object($responses) ? \get_class($responses) : \gettype($responses))); } $active = 0; diff --git a/MockHttpClient.php b/MockHttpClient.php index 7e09e35..07d53cc 100644 --- a/MockHttpClient.php +++ b/MockHttpClient.php @@ -79,7 +79,7 @@ public function stream($responses, float $timeout = null): ResponseStreamInterfa if ($responses instanceof ResponseInterface) { $responses = [$responses]; } elseif (!is_iterable($responses)) { - throw new \TypeError(sprintf('%s() expects parameter 1 to be an iterable of MockResponse objects, "%s" given.', __METHOD__, \is_object($responses) ? \get_class($responses) : \gettype($responses))); + throw new \TypeError(sprintf('"%s()" expects parameter 1 to be an iterable of MockResponse objects, "%s" given.', __METHOD__, \is_object($responses) ? \get_class($responses) : \gettype($responses))); } return new ResponseStream(MockResponse::stream($responses, $timeout)); diff --git a/NativeHttpClient.php b/NativeHttpClient.php index 6665081..7745d85 100644 --- a/NativeHttpClient.php +++ b/NativeHttpClient.php @@ -238,7 +238,7 @@ public function stream($responses, float $timeout = null): ResponseStreamInterfa if ($responses instanceof NativeResponse) { $responses = [$responses]; } elseif (!is_iterable($responses)) { - throw new \TypeError(sprintf('%s() expects parameter 1 to be an iterable of NativeResponse objects, "%s" given.', __METHOD__, \is_object($responses) ? \get_class($responses) : \gettype($responses))); + throw new \TypeError(sprintf('"%s()" expects parameter 1 to be an iterable of NativeResponse objects, "%s" given.', __METHOD__, \is_object($responses) ? \get_class($responses) : \gettype($responses))); } return new ResponseStream(NativeResponse::stream($responses, $timeout));