Skip to content

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

Merged
taylorotwell merged 1 commit into
laravel:12.xfrom
mitoop:12.x
May 8, 2025
Merged

[12.x] Update PHPDoc for whereRaw to allow Expression as $sql#55674
taylorotwell merged 1 commit into
laravel:12.xfrom
mitoop:12.x

Conversation

@mitoop

@mitoop mitoop commented May 8, 2025

Copy link
Copy Markdown
Contributor

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

mitoop commented May 8, 2025

Copy link
Copy Markdown
Contributor Author

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
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