Skip to content

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

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

Closed
wants to merge 2 commits into from

Conversation

rentalhost
Copy link
Contributor

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

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

CC @taylorotwell and @GrahamCampbell

@@ -538,6 +539,47 @@ public function testCreateFromBase()
$this->assertEquals($request->request->all(), $body);
}

/**
* Tests to https://github.com/laravel/framework/issues/10403 issue.
* @dataProvider magicMethodsProvider
Copy link
Member

Choose a reason for hiding this comment

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

missing blank line

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