converting shortsyntax array to legacy array() for PHP < 5.4
This commit is contained in:
parent
2dede356d3
commit
b09b12f3af
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue