From 61790ffd1086048669749e1fb589882dcea64abb Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Tue, 26 Sep 2023 20:23:19 +0200 Subject: [PATCH] Correct parameter type on MakesHttpRequests:followRedirects() (#48557) TestResponse does not directly extend Response, instead it uses @mixin and so must be hinted explicitly to not cause errors when analyzed. --- .../Foundation/Testing/Concerns/MakesHttpRequests.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php b/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php index 81b23af0e973..4910778d651d 100644 --- a/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php +++ b/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php @@ -684,7 +684,7 @@ protected function prepareCookiesForJsonRequest() /** * Follow a redirect chain until a non-redirect is received. * - * @param \Illuminate\Http\Response $response + * @param \Illuminate\Http\Response|\Illuminate\Testing\TestResponse $response * @return \Illuminate\Http\Response|\Illuminate\Testing\TestResponse */ protected function followRedirects($response)