Skip to content

Commit 40b08b7

Browse files
committed
- method renamed
1 parent 1d9ba2f commit 40b08b7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Client/PhpClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function read(): Response
6363
}
6464
return new ServerResponse(
6565
\stream_get_contents($resource),
66-
...$this->extractHeadersFromResource($resource));
66+
...$this->extractStatusAndHeaders($resource));
6767
} catch (\ValueError $e) {
6868
return $this->getPhpError(HttpStatus::FAILED_DEPENDENCY, $e->getMessage());
6969
} catch (\Throwable $e) {
@@ -160,7 +160,7 @@ protected function prepareOptions(): void
160160
* @param resource $resource The resource from fopen()
161161
* @return array Status code and headers
162162
*/
163-
protected function extractHeadersFromResource($resource): array
163+
protected function extractStatusAndHeaders($resource): array
164164
{
165165
try {
166166
$headers = [];

0 commit comments

Comments
 (0)