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

[11.x] Fix incorrect typechange in Illuminate\Database\Query\Builder #53841

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

jnoordsij
Copy link
Contributor

In #53793 various properties in the Illuminate\Database\Query\Builder class were marked as nullable as they have no initial value, thus defaulting to null. However the wheres properties is initialized with an empty array, thus already is an array on class construction and should never be null.

@jnoordsij jnoordsij changed the title [11.x] Fix incorrect typechange in Query Builder [11.x] Fix incorrect typechange in Illuminate\Database\Query\Builder Dec 11, 2024
@xurshudyan
Copy link
Contributor

@jnoordsij You're absolutely correct. The wheres property is initialized as an empty array and should not have been marked as nullable. I initially added the nullable type during development but forgot to remove it before opening the PR. Thank you for catching that!

@taylorotwell taylorotwell merged commit 9f66103 into laravel:11.x Dec 11, 2024
40 checks passed
@jnoordsij jnoordsij deleted the patch-1 branch December 11, 2024 17:00
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.

3 participants