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

[5.3] Fix in Arr::has to check for exact key first #14976

Merged
merged 1 commit into from
Aug 23, 2016
Merged

[5.3] Fix in Arr::has to check for exact key first #14976

merged 1 commit into from
Aug 23, 2016

Conversation

themsaid
Copy link
Member

The change was presented here:
#14789

Before the above change using Arr::has(['first.name' => 'Jon'], 'first.name') would return true as the method was checking for the exact key first before assuming it's a dot notation.

The PR purpose doesn't indicate removing this behaviour, so I assume this needs a fix.

@themsaid themsaid closed this Aug 23, 2016
@themsaid themsaid reopened this Aug 23, 2016
@GrahamCampbell
Copy link
Member

👍 @taylorotwell - probably merge this before tagging 5.3.1. :)

@taylorotwell taylorotwell merged commit 39a39b5 into laravel:5.3 Aug 23, 2016
@vlakoff
Copy link
Contributor

vlakoff commented Aug 24, 2016

Well spotted. I'm surprised we didn't have a test for this case. Maybe it should be added for Arr::get() as well?

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.

None yet

4 participants