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; }