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