Skip to content

Commit

Permalink
Removed FILTER_NULL_ON_FAILURE from boolean()
Browse files Browse the repository at this point in the history
LasseRafn authored Jan 17, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent a8652cc commit bc8c1d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Http/Concerns/InteractsWithInput.php
Original file line number Diff line number Diff line change
@@ -232,7 +232,7 @@ public function input($key = null, $default = null)
*/
public function boolean($key = null, $default = false)
{
return filter_var($this->input($key, $default), FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE);
return filter_var($this->input($key, $default), FILTER_VALIDATE_BOOLEAN);
}

/**

0 comments on commit bc8c1d2

Please sign in to comment.