Skip to content

[12.x] added detailed doc types to bindings related methods #55576

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

Open
wants to merge 2 commits into
base: 12.x
Choose a base branch
from

Conversation

taka-oyama
Copy link
Contributor

@taka-oyama taka-oyama commented Apr 28, 2025

I added detailed types to bindings related methods in Illuminate/Database/Query/Builder for better static type checking and better code completion when using IDEs.

Failed test case seems unrelated to this change?

Comment on lines +66 to +76
* @var array{
* select: list<mixed>,
* from: list<mixed>,
* join: list<mixed>,
* where: list<mixed>,
* groupBy: list<mixed>,
* having: list<mixed>,
* order: list<mixed>,
* union: list<mixed>,
* unionOrder: list<mixed>,
* }
Copy link
Contributor

Choose a reason for hiding this comment

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

Better than nothing but are we really unable to narrow mixed further down?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, what do you suggest then?

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