Removed boolean type declaration only available on PHP7

This commit is contained in:
Julius Ijie 2018-02-23 15:55:45 +01:00
parent 6837c9dfab
commit 8636fed8f5

View File

@ -1021,7 +1021,8 @@ class Validator
* Should the validation stop a rule is failed
* @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;
}