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.2] Tests for Arr::get()/has() with exact key containing dot #15010

Merged
merged 2 commits into from
Aug 24, 2016
Merged

[5.2] Tests for Arr::get()/has() with exact key containing dot #15010

merged 2 commits into from
Aug 24, 2016

Conversation

vlakoff
Copy link
Contributor

@vlakoff vlakoff commented Aug 24, 2016

ping @themsaid :)

@vlakoff vlakoff changed the base branch from 5.3 to 5.2 August 24, 2016 17:23
@vlakoff
Copy link
Contributor Author

vlakoff commented Aug 24, 2016

Great, I managed to make the Travis CI tests to disappear :trollface:

@taylorotwell taylorotwell merged commit d71e340 into laravel:5.2 Aug 24, 2016
@taylorotwell
Copy link
Member

Tests are failing now?

$array = ['products.desk' => ['price' => 100]];
$this->assertTrue(Arr::has($array, 'products.desk'));
$this->assertTrue(Arr::has($array, ['products.desk']));
$this->assertFalse(Arr::has($array, ['products.desk', 'missing']));
Copy link
Member

@themsaid themsaid Aug 24, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In 5.2 the second argument to has should be a string or an integer, not an array. Arrays were supported in 5.3 only.

@taylorotwell that's why the build fails.

@taylorotwell
Copy link
Member

How can we fix the build?

@themsaid
Copy link
Member

@taylorotwell fixed the tests here #15015

@vlakoff vlakoff deleted the arr-test branch August 25, 2016 07: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.

3 participants