Skip to content

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.

@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