qa: switch Psalm method from getChildNodes to getAtomicTypes

See vimeo/psalm#8525
This commit is contained in:
Daniil Gentili 2022-10-01 14:36:06 +02:00 committed by GitHub
parent 2b9d81cc45
commit d7dda9d261
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ final class TreeMapperPsalmPlugin implements MethodReturnTypeProviderInterface
$types = []; $types = [];
foreach ($type->getChildNodes() as $node) { foreach ($type->getAtomicTypes() as $node) {
$inferred = self::type($node); $inferred = self::type($node);
if ($inferred === null) { if ($inferred === null) {