Skip to content

Commit 4ba12f3

Browse files
Bumped guzzlehttp/psr7 to v2.0 + minimal php version to 7.2 accordingly (#23)
1 parent 25ff787 commit 4ba12f3

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^7.1",
19+
"php": "^7.2",
2020
"ext-json": "*",
21-
"guzzlehttp/psr7": "^1.3",
21+
"guzzlehttp/psr7": "^2.0",
2222
"psr/http-client": "^1.0"
2323
},
2424
"require-dev": {

tests/FH/PostcodeAPI/ClientTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@
55
use FH\PostcodeAPI\Client;
66
use FH\PostcodeAPI\Exception\InvalidApiKeyException;
77
use FH\PostcodeAPI\Exception\ServerErrorException;
8+
use GuzzleHttp\Psr7\Message;
89
use GuzzleHttp\Psr7\Response;
910
use Http\Mock\Client as MockClient;
1011
use PHPUnit\Framework\Assert;
1112
use PHPUnit\Framework\TestCase;
1213
use stdClass;
1314

14-
use function GuzzleHttp\Psr7\parse_response;
15-
1615
/**
1716
* @author Gijs Nieuwenhuis <gijs.nieuwenhuis@freshheads.com>
1817
*/
@@ -99,7 +98,7 @@ public function testClientThrowsExceptionWhenInvalidInputIsSupplied(): void
9998

10099
private function loadMockResponse(string $name): Response
101100
{
102-
return parse_response(file_get_contents(__DIR__ . "/../../Mock/{$name}"));
101+
return Message::parseResponse(file_get_contents(__DIR__ . "/../../Mock/{$name}"));
103102
}
104103

105104
private function applyIsFreshheadsAddressAssertions(stdClass $address): void

0 commit comments

Comments
 (0)