From 7343e49af98a30f569b24ca1bae0d7fc6ead12dd Mon Sep 17 00:00:00 2001 From: Daniel Iancu Date: Mon, 4 Apr 2016 21:14:53 +0300 Subject: [PATCH] Use isEmpty to check for empty message bag in the passes function of the Validator --- src/Illuminate/Validation/Validator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Validation/Validator.php b/src/Illuminate/Validation/Validator.php index 0d59c1f54af..72bc33e5bec 100755 --- a/src/Illuminate/Validation/Validator.php +++ b/src/Illuminate/Validation/Validator.php @@ -431,7 +431,7 @@ public function passes() call_user_func($after); } - return count($this->messages->all()) === 0; + return $this->messages->isEmpty(); } /**