From 2a6baf55b7032670b1cd17b8e892c532544b03c1 Mon Sep 17 00:00:00 2001 From: mehdi hasanpour Date: Tue, 5 Jul 2022 15:56:02 +0430 Subject: [PATCH] remove redundant casting --- src/Valitron/Validator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Valitron/Validator.php b/src/Valitron/Validator.php index 60b1603..ce331fd 100644 --- a/src/Valitron/Validator.php +++ b/src/Valitron/Validator.php @@ -1261,7 +1261,7 @@ public function validate() */ public function stopOnFirstFail($stop = true) { - $this->stop_on_first_fail = (bool)$stop; + $this->stop_on_first_fail = $stop; } /** @@ -1430,7 +1430,7 @@ public function rule($rule, $fields) $this->_validations[] = array( 'rule' => $rule, 'fields' => (array)$fields, - 'params' => (array)$params, + 'params' => $params, 'message' => $message );