Skip to content

Conversation

@miladev95
Copy link
Contributor

Update src/Illuminate/Foundation/Exceptions/Renderer/Listener.php docblock for queries() to reflect actual stored keys (connectionName, time, sql, bindings).

Add tests/Foundation/Exceptions/Renderer/ListenerTest.php to assert the queries array shape and values after handling a QueryExecuted event.

improves type documentation and adds minimal test coverage.

* Returns the queries that have been executed.
*
* @return array<int, array{sql: string, time: float}>
* @return array<int, array{connectionName: string, time: float, sql: string, bindings: array}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be even done to the second array:

Suggested change
* @return array<int, array{connectionName: string, time: float, sql: string, bindings: array}>
* @return array<int, array{connectionName: string, time: float, sql: string, bindings: array<string, mixed>}>

@taylorotwell taylorotwell merged commit d4a2f30 into laravel:12.x Dec 7, 2025
74 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