Skip to content

Commit d9a132e

Browse files
alexmicheletAlex Michelet
and
Alex Michelet
authored
use strict comparison when searching for a node's child (#86)
Co-authored-by: Alex Michelet <[email protected]>
1 parent 295fcd3 commit d9a132e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

JBBCode/ElementNode.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public function addChild(Node $child)
185185
public function removeChild(Node $child)
186186
{
187187
foreach ($this->children as $key => $value) {
188-
if ($value == $child) {
188+
if ($value === $child) {
189189
unset($this->children[$key]);
190190
}
191191
}

0 commit comments

Comments
 (0)