8000 [12.x] Update PHPDoc for whereRaw to allow Expression as $sql by mitoop · Pull Request #55674 · laravel/framework · GitHub
[go: up one dir, main page]

Skip to content

[12.x] Update PHPDoc for whereRaw to allow Expression as $sql #55674

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

Merged
merged 1 commit into from
May 8, 2025

Conversation

mitoop
Copy link
Contributor
@mitoop mitoop commented May 8, 2025

This PR updates the PHPDoc of the whereRaw method to reflect that the $sql parameter supports both string and Illuminate\Database\Query\Expression instances.

Signed-off-by: mitoop <me@mitoop.com>
@mitoop
Copy link
Contributor Author
mitoop commented May 8, 2025

The method has technically supported Expression objects since Laravel v10.28.0 (via #48652 ), the PHPDoc still only documents string.

@mitoop mitoop changed the title Update PHPDoc for whereRaw to allow Expression as $sql [12.x] Update PHPDoc for whereRaw to allow Expression as $sql May 8, 2025
@taylorotwell taylorotwell merged commit 81cd4d6 into laravel:12.x May 8, 2025
60 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
0