Skip to content

Commit 12f092a

Browse files
authored
Laravel 10.x | Guzzle 7.x | PHP 8.x (#4)
1 parent 0de24ed commit 12f092a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"phpunit/phpunit": "^8.0",
99
"mockery/mockery": "dev-master",
1010
"laravel/helpers": "^1.1",
11-
"guzzlehttp/guzzle": "^6.1",
12-
"laravel/framework": "^8.0"
11+
"guzzlehttp/guzzle": "^7.0",
12+
"laravel/framework": "^10.0"
1313
},
1414
"authors": [
1515
{

src/Request.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use GuzzleHttp\Psr7\Request as GuzzleRequest;
66
use GuzzleHttp\Psr7\Uri;
77
use GuzzleHttp\Psr7;
8+
use GuzzleHttp\Psr7\Utils;
89
use Stash\Pool;
910
use STS\Sdk\CircuitBreaker\BreakerPanel;
1011
use STS\Sdk\CircuitBreaker\BreakerSwitch;
@@ -125,7 +126,7 @@ public function setHeader($name, $value)
125126
*/
126127
public function setBody($contents)
127128
{
128-
$this->request = $this->request->withBody(Psr7\stream_for($contents));
129+
$this->request = $this->request->withBody(Utils::streamFor($contents));
129130
}
130131

131132
/**

0 commit comments

Comments
 (0)