Skip to content

Commit e20f109

Browse files
authored
Bump minimum versions (#12)
1 parent 1b98d32 commit e20f109

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ cache:
77
- $HOME/.composer/cache/files
88

99
php:
10-
- 7.1
1110
- 7.2
1211
- 7.3
1312
- 7.4
@@ -23,7 +22,7 @@ branches:
2322
matrix:
2423
fast_finish: true
2524
include:
26-
- php: 7.1
25+
- php: 7.2
2726
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
2827
- php: 7.4
2928
env: COMPOSER_FLAGS="--prefer-stable" COVERAGE=true TEST_COMMAND="composer test-ci"

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
}
1212
],
1313
"require": {
14-
"php": "^7.1",
15-
"guzzlehttp/psr7": "^1.4",
14+
"php": "^7.2",
15+
"guzzlehttp/psr7": "^1.7",
1616
"php-http/client-common": "^2.0",
1717
"psr/log": "^1.1",
1818
"symfony/filesystem": "^3.4|^4.0|^5.0",

src/Recorder/FilesystemRecorder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Http\Client\Plugin\Vcr\Recorder;
66

7-
use GuzzleHttp\Psr7;
7+
use GuzzleHttp\Psr7\Message;
88
use Psr\Http\Message\ResponseInterface;
99
use Psr\Log\LoggerAwareInterface;
1010
use Psr\Log\LoggerAwareTrait;
@@ -74,15 +74,15 @@ public function replay(string $name): ?ResponseInterface
7474
throw new \RuntimeException(sprintf('Unable to read "%s" file content', $filename));
7575
}
7676

77-
return Psr7\parse_response($content);
77+
return Message::parseResponse($content);
7878
}
7979

8080
public function record(string $name, ResponseInterface $response): void
8181
{
8282
$filename = "{$this->directory}$name.txt";
8383
$context = compact('name', 'filename');
8484

85-
if (null === $content = preg_replace(array_keys($this->filters), array_values($this->filters), Psr7\str($response))) {
85+
if (null === $content = preg_replace(array_keys($this->filters), array_values($this->filters), Message::toString($response))) {
8686
throw new \RuntimeException('Some of the provided response filters are invalid.');
8787
}
8888

0 commit comments

Comments
 (0)