Skip to content

Commit

Permalink
Fix #11985
Browse files Browse the repository at this point in the history
Refs #11982 & #11985
  • Loading branch information
highstrike committed Apr 26, 2018
1 parent 6d327f9 commit 1b31d99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form/Form.php
Expand Up @@ -226,7 +226,7 @@ public function validate(array $data)
$validator = $this->getValidator();
if (!$validator->count()) {
$method = new ReflectionMethod($this, 'validator');
if ($method->getDeclaringClass() !== __CLASS__) {
if ($method->getDeclaringClass()->getName() !== __CLASS__) {
$validator = $this->validator();
}
}
Expand Down

0 comments on commit 1b31d99

Please sign in to comment.