From 04ed0fca7de8fb2a206bdcb5a7d89893934070a5 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sat, 23 Jul 2022 20:17:37 +0700 Subject: [PATCH] final touch: comment rollback --- packages/PHPStanStaticTypeMapper/TypeMapper/UnionTypeMapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/PHPStanStaticTypeMapper/TypeMapper/UnionTypeMapper.php b/packages/PHPStanStaticTypeMapper/TypeMapper/UnionTypeMapper.php index 013f1e98d1e..758f2ebb78a 100644 --- a/packages/PHPStanStaticTypeMapper/TypeMapper/UnionTypeMapper.php +++ b/packages/PHPStanStaticTypeMapper/TypeMapper/UnionTypeMapper.php @@ -279,7 +279,7 @@ private function matchPhpParserUnionType(UnionType $unionType, string $typeKind) $phpParserUnionedTypes = []; foreach ($unionType->getTypes() as $unionedType) { - // void,mixed, and intersection type are not allowed in union + // void type and mixed type are not allowed in union if (in_array($unionedType::class, [MixedType::class, VoidType::class], true)) { return null; }