File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ All notable changes to this project will be documented in this file.
6
6
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/en/1.0.0/ )
7
7
and this project adheres to [ Semantic Versioning] ( http://semver.org/spec/v2.0.0.html ) .
8
8
9
+ ## [ 1.11.2] - 2021-08-03
10
+
11
+ - Support GuzzleHttp/Psr7 version 2.0 in the (deprecated) GuzzleStreamFactory.
12
+
9
13
## [ 1.11.1] - 2021-05-24
10
14
11
15
- Support GuzzleHttp/Psr7 version 2.0 in the (deprecated) GuzzleUriFactory.
Original file line number Diff line number Diff line change 2
2
3
3
namespace Http \Message \StreamFactory ;
4
4
5
+ use GuzzleHttp \Psr7 \Utils ;
5
6
use Http \Message \StreamFactory ;
6
7
7
8
/**
@@ -18,6 +19,10 @@ final class GuzzleStreamFactory implements StreamFactory
18
19
*/
19
20
public function createStream ($ body = null )
20
21
{
22
+ if (class_exists (Utils::class)) {
23
+ return Utils::streamFor ($ body );
24
+ }
25
+
21
26
return \GuzzleHttp \Psr7 \stream_for ($ body );
22
27
}
23
28
}
You can’t perform that action at this time.
0 commit comments