[Validator] Minor fix in XmlLoader

This commit is contained in:
florianv 2014-01-24 12:47:06 +01:00
parent 2381680a7e
commit 16b726c043
2 changed files with 5 additions and 5 deletions

View File

@ -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
*

View File

@ -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;