Skip to content
Permalink
Browse files

Remove extra params in constructor call for ValidCount.

  • Loading branch information...
ADmad committed Dec 14, 2016
1 parent 2bca058 commit 6041a0c20aca1d39b7f33a943d292deadf09df4e
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/ORM/RulesChecker.php
@@ -133,6 +133,10 @@ public function validCount($field, $count = 0, $operator = '>', $message = null)
$errorField = $field;
return $this->_addError(new ValidCount($field, $count, $operator), '_validCount', compact('count', 'operator', 'errorField', 'message'));
return $this->_addError(
new ValidCount($field),
'_validCount',
compact('count', 'operator', 'errorField', 'message')
);
}
}

0 comments on commit 6041a0c

Please sign in to comment.
You can’t perform that action at this time.