remove unneeded cast

This commit is contained in:
Tobias Schultze 2012-12-02 18:47:28 +01:00
parent 358e9c47b9
commit 51fbffec26

View File

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