@@ -50,7 +50,7 @@ protected function createResponse(): ResponseInterface
5050 *
5151 * @return RequestHandlerInterface
5252 */
53- protected function createRequestHandler (ResponseInterface $ response = null ): RequestHandlerInterface
53+ protected function createRequestHandler (? ResponseInterface $ response ): RequestHandlerInterface
5454 {
5555 $ response = $ response ?? $ this ->createResponse ();
5656
@@ -74,7 +74,7 @@ public function testCacheControlHeader()
7474 $ cache = $ this ->createCache ('public ' , 86400 );
7575 $ req = $ this ->requestFactory ();
7676
77- $ res = $ cache ->process ($ req , $ this ->createRequestHandler ());
77+ $ res = $ cache ->process ($ req , $ this ->createRequestHandler (null ));
7878
7979 $ cacheControl = $ res ->getHeaderLine ('Cache-Control ' );
8080
@@ -86,7 +86,7 @@ public function testCacheControlHeaderWithMustRevalidate()
8686 $ cache = $ this ->createCache ('private ' , 86400 , true );
8787 $ req = $ this ->requestFactory ();
8888
89- $ res = $ cache ->process ($ req , $ this ->createRequestHandler ());
89+ $ res = $ cache ->process ($ req , $ this ->createRequestHandler (null ));
9090
9191 $ cacheControl = $ res ->getHeaderLine ('Cache-Control ' );
9292
@@ -98,7 +98,7 @@ public function testCacheControlHeaderWithZeroMaxAge()
9898 $ cache = $ this ->createCache ('private ' , 0 , false );
9999 $ req = $ this ->requestFactory ();
100100
101- $ res = $ cache ->process ($ req , $ this ->createRequestHandler ());
101+ $ res = $ cache ->process ($ req , $ this ->createRequestHandler (null ));
102102
103103 $ cacheControl = $ res ->getHeaderLine ('Cache-Control ' );
104104
0 commit comments