Skip to content

fix: align ResponseFactory::eventStream signature with interface #56484

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

Conversation

KIKOmanasijev
Copy link
Contributor

Fix: Align ResponseFactory::eventStream signature with interface

Summary

This PR fixes a method signature mismatch in Illuminate\Routing\ResponseFactory::eventStream that was causing fatal errors in tests.

Problem

PR #56306 added the eventStream method signature to the Illuminate\Contracts\Routing\ResponseFactory interface to improve type support and static analysis. However, the existing concrete implementation in Illuminate\Routing\ResponseFactory uses type hints that don't match the interface declaration, creating a fatal error:
image

@taylorotwell taylorotwell merged commit 4dde011 into laravel:master Jul 30, 2025
19 of 54 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.

2 participants