Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / validator / Mapping / Loader / AnnotationLoader.php
index a3b5f7ee8e9731d6dd55290fb1db0e37b188edd4..b09f5a669bac07a8ede309810f2aea459582d8da 100644 (file)
@@ -74,7 +74,6 @@ class AnnotationLoader implements LoaderInterface
                 foreach ($this->reader->getMethodAnnotations($method) as $constraint) {
                     if ($constraint instanceof Callback) {
                         $constraint->callback = $method->getName();
-                        $constraint->methods = null;
 
                         $metadata->addConstraint($constraint);
                     } elseif ($constraint instanceof Constraint) {