The method getValue() does not exist on loophp\phptree\Node\NodeInterface. It seems like you code against a sub-type of loophp\phptree\Node\NodeInterface such as loophp\phptree\Node\ValueNodeInterface or loophp\phptree\Node\ValueNode or loophp\phptree\Node\ValueNode.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
The method getKey() does not exist on loophp\phptree\Node\NodeInterface. It seems like you code against a sub-type of loophp\phptree\Node\NodeInterface such as loophp\phptree\Node\KeyValueNode or loophp\phptree\Node\KeyValueNodeInterface or loophp\phptree\Node\KeyValueNode or loophp\phptree\Node\KeyValueNode.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
The expression return $child returns the type loophp\phptree\Node\NodeInterface[] which is incompatible with the documented return type loophp\phptree\Node\Node...Node\ValueNodeInterface.