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

[11x.] Improved typehints for InteractsWithDatabase #54748

Merged
merged 3 commits into from
Feb 23, 2025

Conversation

cosmastech
Copy link
Contributor

When I'm using the DB helper functions, if it's been a while, I usually have to check if it accepts a table name, a model instance, or a class-string of the Model. I thought I may help others by making the docblocks more explicit.

Technically class-string is a subtype of string, but I think being a bit more explicit is helpful.

Furthermore, I have made the mistake more than once where I thought I could pass a list of associative arrays to see if they all exist. 😅

@taylorotwell taylorotwell merged commit 344c37f into laravel:11.x Feb 23, 2025
46 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