Closed alexmichelet closed 4 years ago
@jbowens All tests pass. I am not sure why Travis did not run on this one.
Thanks! Looks good to me
Thank you! @jbowens is it possible to release a new patch version with this change ?
@alexmichelet for sure. released 1.4.2 with this change
The loose comparison used to find the child to remove from a node will compare every attributes recursively, which can lead to recursion errors ("nesting level too deep") and poor performance when you're dealing with a lot of nested nodes.
A strict comparison makes sure that it's the same instance, which should be enough. see : https://www.php.net/manual/en/language.oop5.object-comparison.php