Skip to content

Fix/routing response factory method signature #56483

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

crynobone and others added 30 commits February 19, 2025 14:15
Signed-off-by: Mior Muhammad Zaki <[email protected]>
* fetchargs

* add fetchArgs() function

* fetchargs

* add fetchArgs() function

* add afterquery callbacks

* fix typo

* flip afterquerycallback

* fix expectations

* add expectations

* add expectations

* add expectations

* add raw expression test

* rename to fetchUsing

* style

* Remove test from PR laravel#54396

* Revert most Query\Builder changes

* remove DB::raw test

* Revert QueryBuilder pluck tests

* Add base tests for $query->fetchUsing()

* style

* formatting

* Update Builder.php

* Fix filled columns before calling pluck

* query db compatibility

---------

Co-authored-by: Taylor Otwell <[email protected]>
* Add tests

* Remove any scopes removed in a nested where

* Update tests to expect calls to `removedScopes`
* Remove function existence checks

* remove unused JsonException import

---------

Co-authored-by: Xurshudyan <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
* fetchargs

* add fetchArgs() function

* fetchargs

* add fetchArgs() function

* add afterquery callbacks

* fix typo

* flip afterquerycallback

* fix expectations

* add expectations

* add expectations

* add expectations

* add raw expression test

* rename to fetchUsing

* style

* Remove test from PR laravel#54396

* Revert most Query\Builder changes

* remove DB::raw test

* Revert QueryBuilder pluck tests

* Add base tests for $query->fetchUsing()

* style

* formatting

* Update Builder.php

* Fix filled columns before calling pluck

* query db compatibility

* remove unrelated test

---------

Co-authored-by: Taylor Otwell <[email protected]>
…el#55508)

* Allow Listeners to dynamically specify deleteWhenMissingModels

* Update BroadcastEvent.php

* Update CallQueuedListener.php

---------

Co-authored-by: Taylor Otwell <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
…ravel#55685)

* Add failing test

* Only mark a model class as booted after the boot process has been completed

* Mark a model class as booting as soon as the boot process starts

- A model class is removed from the `booting` array as soon as the boot process has completed.

* Throw an exception if `bootIfNotBooted` is called while booting

- This infers that something in the boot process expected the boot to already be finished.
- If we just ignore the call then the model class would be in an inconsistent state for whichever code called it.

* formatting

* formatting

---------

Co-authored-by: Taylor Otwell <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
It still works, because of php case sensitive rules, but it's better correct.
jferdi24 and others added 12 commits May 27, 2025 17:16
* feat: add support in grammar

* feat: add functions in builder

* test: add tests

* test: adjust syntax mysql

* test: adjust syntax mysql

* test: remove line noused

* test: execute compileJoins

* formatting

---------

Co-authored-by: Taylor Otwell <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
* [13.x] Supports Symfony 7.4

Signed-off-by: Mior Muhammad Zaki <[email protected]>

* Update `Application` to use `addCommand` insteads of deprecated `add`

Signed-off-by: Mior Muhammad Zaki <[email protected]>

* wip

Signed-off-by: Mior Muhammad Zaki <[email protected]>

* Remove `addToParent()` method.

Signed-off-by: Mior Muhammad Zaki <[email protected]>

* Revert "Remove `addToParent()` method."

This reverts commit 7cf2aa7.

* wip

Signed-off-by: Mior Muhammad Zaki <[email protected]>

* Update Application.php

---------

Signed-off-by: Mior Muhammad Zaki <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
* Change to hyphenate prefixes

* Use `Str::snake()` as intended
* remove superfluous element

we don't need both the `<div>` and the `<p>` elements, as their purpose can be handled by a single `<div>`.

while minor, having less DOM is always better for performance.

* do the same for the BS5 view
Adds `eventStream` to `Illuminate\Contracts\Routing\ResponseFactory` in order to add type support for this method, aligning this with the same behavior that we have for `stream` of which `eventStream` is a convenient wrapper.
@KIKOmanasijev KIKOmanasijev deleted the fix/routing-response-factory-method-signature branch July 30, 2025 16:32
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.