We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d9ba2f commit 40b08b7Copy full SHA for 40b08b7
1 file changed
Client/PhpClient.php
@@ -63,7 +63,7 @@ public function read(): Response
63
}
64
return new ServerResponse(
65
\stream_get_contents($resource),
66
- ...$this->extractHeadersFromResource($resource));
+ ...$this->extractStatusAndHeaders($resource));
67
} catch (\ValueError $e) {
68
return $this->getPhpError(HttpStatus::FAILED_DEPENDENCY, $e->getMessage());
69
} catch (\Throwable $e) {
@@ -160,7 +160,7 @@ protected function prepareOptions(): void
160
* @param resource $resource The resource from fopen()
161
* @return array Status code and headers
162
*/
163
- protected function extractHeadersFromResource($resource): array
+ protected function extractStatusAndHeaders($resource): array
164
{
165
try {
166
$headers = [];
0 commit comments