File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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.
33
44The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ ) and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
55
6+ ## [ 3.2.1] - 2018-10-24
7+ ### Summary
8+ - Widen range of supported Zend Diactoros version
9+
610## [ 3.2.0] - 2018-09-19
711### Summary
812- Added support for ` PATCH ` HTTP method
Original file line number Diff line number Diff line change 99 "psr/http-server-handler" : " ^1.0" ,
1010 "psr/http-server-middleware" : " ^1.0" ,
1111 "psr/log" : " ^1.0" ,
12- "zendframework/zend-diactoros" : " ^1.3"
12+ "zendframework/zend-diactoros" : " ^1.3 || ^2.0 "
1313 },
1414 "suggest" : {
1515 "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
161161 foreach ($ request ->getHeaders () as $ name => $ values ) {
162162 $ serverRequest = $ serverRequest ->withHeader ($ name , $ values );
163163 }
164+ // ZD2 hints the return type of withHeader to MessageInterface not SRI
165+ assert ($ serverRequest instanceof ServerRequestInterface);
164166 return $ serverRequest ;
165167 }
166168
Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ public function testSetRequestReturnsSelf()
9292 {
9393 $ d = new Dispatcher ();
9494 $ req = $ this ->createMock (RequestInterface::class);
95+ $ req ->method ('getMethod ' )->willReturn ('GET ' );
9596 $ req ->method ('getHeaders ' )->willReturn ([]);
9697 $ req ->method ('getBody ' )->willReturn ($ this ->createMock (StreamInterface::class));
9798 $ req ->method ('getUri ' )->willReturn ($ this ->createMock (UriInterface::class));
You can’t perform that action at this time.
0 commit comments