remove unneeded cast
This commit is contained in:
parent
358e9c47b9
commit
51fbffec26
@ -155,13 +155,13 @@ class XmlFileLoader extends FileLoader
|
||||
|
||||
switch ($node->tagName) {
|
||||
case 'default':
|
||||
$defaults[$node->getAttribute('key')] = trim((string) $node->nodeValue);
|
||||
$defaults[$node->getAttribute('key')] = trim($node->nodeValue);
|
||||
break;
|
||||
case 'option':
|
||||
$options[$node->getAttribute('key')] = trim((string) $node->nodeValue);
|
||||
$options[$node->getAttribute('key')] = trim($node->nodeValue);
|
||||
break;
|
||||
case 'requirement':
|
||||
$requirements[$node->getAttribute('key')] = trim((string) $node->nodeValue);
|
||||
$requirements[$node->getAttribute('key')] = trim($node->nodeValue);
|
||||
break;
|
||||
default:
|
||||
throw new \InvalidArgumentException(sprintf('Unable to parse tag "%s"', $node->tagName));
|
||||
|
Reference in New Issue
Block a user