From 16b726c043c6659ae5f20af05eaca55e92cd409f Mon Sep 17 00:00:00 2001 From: florianv Date: Fri, 24 Jan 2014 12:47:06 +0100 Subject: [PATCH] [Validator] Minor fix in XmlLoader --- .../Component/Validator/Mapping/Loader/AbstractLoader.php | 8 ++++---- .../Component/Validator/Mapping/Loader/XmlFileLoader.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Symfony/Component/Validator/Mapping/Loader/AbstractLoader.php b/src/Symfony/Component/Validator/Mapping/Loader/AbstractLoader.php index 7015f92d42..18a7690080 100644 --- a/src/Symfony/Component/Validator/Mapping/Loader/AbstractLoader.php +++ b/src/Symfony/Component/Validator/Mapping/Loader/AbstractLoader.php @@ -36,10 +36,10 @@ abstract class AbstractLoader implements LoaderInterface /** * Creates a new constraint instance for the given constraint name. * - * @param string $name The constraint name. Either a constraint relative - * to the default constraint namespace, or a fully - * qualified class name - * @param array $options The constraint options + * @param string $name The constraint name. Either a constraint relative + * to the default constraint namespace, or a fully + * qualified class name + * @param mixed $options The constraint options * * @return Constraint * diff --git a/src/Symfony/Component/Validator/Mapping/Loader/XmlFileLoader.php b/src/Symfony/Component/Validator/Mapping/Loader/XmlFileLoader.php index cad247e883..3f157c9241 100644 --- a/src/Symfony/Component/Validator/Mapping/Loader/XmlFileLoader.php +++ b/src/Symfony/Component/Validator/Mapping/Loader/XmlFileLoader.php @@ -105,7 +105,7 @@ class XmlFileLoader extends FileLoader $options = null; } - $constraints[] = $this->newConstraint($node['name'], $options); + $constraints[] = $this->newConstraint((string) $node['name'], $options); } return $constraints;