Skip to content

[9.x] Adds null as valid $keys type for Collection::only()#45730

Merged
taylorotwell merged 1 commit intolaravel:9.xfrom
timacdonald:only-null
Jan 20, 2023
Merged

[9.x] Adds null as valid $keys type for Collection::only()#45730
taylorotwell merged 1 commit intolaravel:9.xfrom
timacdonald:only-null

Conversation

@timacdonald
Copy link
Copy Markdown
Member

The very first check in the function is a null check, thus it is a valid value for $keys.

@taylorotwell taylorotwell merged commit 14268a7 into laravel:9.x Jan 20, 2023
@timacdonald timacdonald deleted the only-null branch January 22, 2023 23:42
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