Skip to content

Commit

Permalink
Removed FILTER_NULL_ON_FAILURE from boolean()
Browse files Browse the repository at this point in the history
  • Loading branch information
LasseRafn authored Jan 17, 2020
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
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit bc8c1d2

Please sign in to comment.