Skip to content

Commit

Permalink
Fixed global callback issue in validation rule
Browse files Browse the repository at this point in the history
  • Loading branch information
tigrang committed Mar 18, 2014
1 parent 9c4453b commit 0fe788d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Validation/ValidationRule.php
Expand Up @@ -112,7 +112,7 @@ public function process($value, $providers, array $context = []) {
return true;
}

if (is_callable($this->_rule)) {
if (!is_string($this->_rule) && is_callable($this->_rule)) {
$callable = $this->_rule;
$isCallable = true;
} else {
Expand Down

0 comments on commit 0fe788d

Please sign in to comment.