mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-30 23:01:52 +00:00
Removed boolean type declaration only available on PHP7
This commit is contained in:
parent
6837c9dfab
commit
8636fed8f5
@ -1021,7 +1021,8 @@ class Validator
|
|||||||
* Should the validation stop a rule is failed
|
* Should the validation stop a rule is failed
|
||||||
* @param bool $stop
|
* @param bool $stop
|
||||||
*/
|
*/
|
||||||
public function stopOnFirstFail(bool $stop) {
|
public function stopOnFirstFail($stop) {
|
||||||
|
if(!is_bool($stop)) throw new \InvalidArgumentException('Parameter of type boolean expected');
|
||||||
$this->stop_on_first_fail = $stop;
|
$this->stop_on_first_fail = $stop;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user