Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[11.x] Fix PHPDoc for TestResponse's Response Type to \Symfony\Component\HttpFoundation\Response #52915

Conversation

kayw-geek
Copy link
Contributor

Description:

This pull request addresses an issue where the PHPDoc for TestResponse incorrectly specifies the Response type as \Illuminate\Http\Response. Upon closer inspection, it was found that the actual response type can be more generalized to \Symfony\Component\HttpFoundation\Response. Specifically, when dealing with download responses or redirect responses, the type is not \Illuminate\Http\Response.

@kayw-geek kayw-geek changed the title Fix PHPDoc for TestResponse's Response Type to \Symfony\Component\HttpFoundation\Response [11.x] Fix PHPDoc for TestResponse's Response Type to \Symfony\Component\HttpFoundation\Response Sep 25, 2024
@kayw-geek kayw-geek force-pushed the bugfix/fix-incorrect-phpdoc-for-test-response branch 2 times, most recently from c36c795 to 5e2c20e Compare September 25, 2024 03:55
@kayw-geek kayw-geek force-pushed the bugfix/fix-incorrect-phpdoc-for-test-response branch 6 times, most recently from 0e4d831 to eb396d5 Compare September 25, 2024 06:01
@kayw-geek kayw-geek force-pushed the bugfix/fix-incorrect-phpdoc-for-test-response branch from eb396d5 to dbcfffb Compare September 25, 2024 06:01
Signed-off-by: Mior Muhammad Zaki <[email protected]>
@taylorotwell taylorotwell merged commit 4d7556f into laravel:11.x Sep 25, 2024
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants