summaryrefslogtreecommitdiff
path: root/src/Nodes
diff options
context:
space:
mode:
authorAndres Rey <[email protected]>2018-11-06 23:39:49 +0000
committerAndres Rey <[email protected]>2018-11-06 23:39:49 +0000
commitda2e712e3f7e4053c2b7202a701e6472c8409a28 (patch)
tree208fda15ffecc2c712c374a85aaa66f3f9f52a53 /src/Nodes
parent2fbf4b1b485477af1c80a158f2c4921f37b77822 (diff)
Set default value for $carry in array_reduce functions
Diffstat (limited to 'src/Nodes')
-rw-r--r--src/Nodes/NodeTrait.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Nodes/NodeTrait.php b/src/Nodes/NodeTrait.php
index da09f26..6aa5414 100644
--- a/src/Nodes/NodeTrait.php
+++ b/src/Nodes/NodeTrait.php
@@ -477,7 +477,7 @@ trait NodeTrait
($this->nodeName === 'a' || $this->nodeName === 'del' || $this->nodeName === 'ins') &&
array_reduce(iterator_to_array($this->childNodes), function ($carry, $node) {
return $node->isPhrasingContent() && $carry;
- })
+ }, true)
);
}