Skip to content

Commit

Permalink
Correct parameter type on MakesHttpRequests:followRedirects() (#48557)
Browse files Browse the repository at this point in the history
TestResponse does not directly extend Response, instead it uses @mixin and so must be hinted explicitly to not cause errors when analyzed.
  • Loading branch information
AJenbo committed Sep 26, 2023
1 parent b17fae5 commit cf4781c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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)
Expand Down

0 comments on commit cf4781c

Please sign in to comment.