Skip to content

[5.1] Fixes issue #10403: empty() over Request returns inconsistent results because __isset() is not defined. #10446

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

Merged
merged 5 commits into from
Oct 1, 2015

Conversation

rentalhost
Copy link
Contributor

This was started originally by @kneipp, continuing from PR #10431 and PR #10437 about issue #10403.

It'll add the __isset() method to Http\Request, making possible check if property is empty() or isset() correctly.

@GrahamCampbell

@taylorotwell
Copy link
Member

That test and data provider is mega hard to read. Is it possible to just create the requests inline and test the values without going throuhg all that data provider business with tons of values?

@rentalhost
Copy link
Contributor Author

It was the initial idea. But if first test fail, the next one will not be executed. I don't know if it is a problem, on really. In all case, I'll inline that. Thanks.

@rentalhost
Copy link
Contributor Author

Done.

taylorotwell added a commit that referenced this pull request Oct 1, 2015
[5.1] Fixes issue #10403: empty() over Request returns inconsistent results because __isset() is not defined.
@taylorotwell taylorotwell merged commit e24a062 into laravel:5.1 Oct 1, 2015
@rentalhost rentalhost deleted the 5.1-request-isset branch October 3, 2015 04:33
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