[Validator] Minor fix in XmlLoader
This commit is contained in:
parent
2381680a7e
commit
16b726c043
@ -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
|
||||
*
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user