Browse Source

Merge pull request #12009 from highstrike/patch-1

Fix for PR #11985
Mark Story 8 years ago
parent
commit
62944e3bc0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Form/Form.php

+ 1 - 1
src/Form/Form.php

@@ -226,7 +226,7 @@ class Form implements EventListenerInterface, EventDispatcherInterface, Validato
         $validator = $this->getValidator();
         if (!$validator->count()) {
             $method = new ReflectionMethod($this, 'validator');
-            if ($method->getDeclaringClass() !== __CLASS__) {
+            if ($method->getDeclaringClass()->getName() !== __CLASS__) {
                 $validator = $this->validator();
             }
         }