Skip to content

Commit

Permalink
Correct parameter type on MakesHttpRequests:followRedirects() (larave…
Browse files Browse the repository at this point in the history
…l#48557)

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 authored and timacdonald committed Sep 27, 2023
1 parent 06a51c8 commit 61790ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
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 61790ff

Please sign in to comment.