File tree Expand file tree Collapse file tree 4 files changed +8
-1
lines changed Expand file tree Collapse file tree 4 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
3
3
4
4
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ ) and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
5
5
6
+ ## [ 3.2.1] - 2018-10-24
7
+ ### Summary
8
+ - Widen range of supported Zend Diactoros version
9
+
6
10
## [ 3.2.0] - 2018-09-19
7
11
### Summary
8
12
- Added support for ` PATCH ` HTTP method
Original file line number Diff line number Diff line change 9
9
"psr/http-server-handler" : " ^1.0" ,
10
10
"psr/http-server-middleware" : " ^1.0" ,
11
11
"psr/log" : " ^1.0" ,
12
- "zendframework/zend-diactoros" : " ^1.3"
12
+ "zendframework/zend-diactoros" : " ^1.3 || ^2.0 "
13
13
},
14
14
"suggest" : {
15
15
"firehed/inputobjects" : " Pre-made Input components for validation"
Original file line number Diff line number Diff line change @@ -161,6 +161,8 @@ private function transformRequestToServerRequest(RequestInterface $request): Ser
161
161
foreach ($ request ->getHeaders () as $ name => $ values ) {
162
162
$ serverRequest = $ serverRequest ->withHeader ($ name , $ values );
163
163
}
164
+ // ZD2 hints the return type of withHeader to MessageInterface not SRI
165
+ assert ($ serverRequest instanceof ServerRequestInterface);
164
166
return $ serverRequest ;
165
167
}
166
168
Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ public function testSetRequestReturnsSelf()
92
92
{
93
93
$ d = new Dispatcher ();
94
94
$ req = $ this ->createMock (RequestInterface::class);
95
+ $ req ->method ('getMethod ' )->willReturn ('GET ' );
95
96
$ req ->method ('getHeaders ' )->willReturn ([]);
96
97
$ req ->method ('getBody ' )->willReturn ($ this ->createMock (StreamInterface::class));
97
98
$ req ->method ('getUri ' )->willReturn ($ this ->createMock (UriInterface::class));
You can’t perform that action at this time.
0 commit comments