converting shortsyntax array to legacy array() for PHP < 5.4

This commit is contained in:
Enrico Deleo 2016-07-26 16:27:21 +02:00
parent 2dede356d3
commit b09b12f3af
1 changed files with 1 additions and 1 deletions

View File

@ -569,7 +569,7 @@ class Emogrifier
// we don't try to call removeChild on a nonexistent child node
/** @var \DOMNode $node */
foreach ($nodesWithStyleDisplayNone as $node) {
if ($node->parentNode && is_callable([$node->parentNode, 'removeChild'])) {
if ( $node->parentNode && is_callable( array($node->parentNode, 'removeChild') ) ) {
$node->parentNode->removeChild($node);
}
}