@@ -43,7 +43,7 @@ protected function createResponse(): ResponseInterface
4343 *
4444 * @return RequestHandlerInterface
4545 */
46- protected function createRequestHandler (ResponseInterface $ response = null ): RequestHandlerInterface
46+ protected function createRequestHandler (? ResponseInterface $ response ): RequestHandlerInterface
4747 {
4848 $ response = $ response ?? $ this ->createResponse ();
4949
@@ -67,7 +67,7 @@ public function testCacheControlHeader()
6767 $ cache = new Cache ('public ' , 86400 );
6868 $ req = $ this ->requestFactory ();
6969
70- $ res = $ cache ->process ($ req , $ this ->createRequestHandler ());
70+ $ res = $ cache ->process ($ req , $ this ->createRequestHandler (null ));
7171
7272 $ cacheControl = $ res ->getHeaderLine ('Cache-Control ' );
7373
@@ -79,7 +79,7 @@ public function testCacheControlHeaderWithMustRevalidate()
7979 $ cache = new Cache ('private ' , 86400 , true );
8080 $ req = $ this ->requestFactory ();
8181
82- $ res = $ cache ->process ($ req , $ this ->createRequestHandler ());
82+ $ res = $ cache ->process ($ req , $ this ->createRequestHandler (null ));
8383
8484 $ cacheControl = $ res ->getHeaderLine ('Cache-Control ' );
8585
@@ -91,7 +91,7 @@ public function testCacheControlHeaderWithZeroMaxAge()
9191 $ cache = new Cache ('private ' , 0 , false );
9292 $ req = $ this ->requestFactory ();
9393
94- $ res = $ cache ->process ($ req , $ this ->createRequestHandler ());
94+ $ res = $ cache ->process ($ req , $ this ->createRequestHandler (null ));
9595
9696 $ cacheControl = $ res ->getHeaderLine ('Cache-Control ' );
9797
0 commit comments