diff --git a/qa/Psalm/Plugin/TreeMapperPsalmPlugin.php b/qa/Psalm/Plugin/TreeMapperPsalmPlugin.php index 8d26850..c6625e5 100644 --- a/qa/Psalm/Plugin/TreeMapperPsalmPlugin.php +++ b/qa/Psalm/Plugin/TreeMapperPsalmPlugin.php @@ -35,7 +35,7 @@ final class TreeMapperPsalmPlugin implements MethodReturnTypeProviderInterface $types = []; - foreach ($type->getChildNodes() as $node) { + foreach ($type->getAtomicTypes() as $node) { $inferred = self::type($node); if ($inferred === null) {