Skip to content

Commit 83efe86

Browse files
committed
Remove a redundant array_values() detected by PHPStan
1 parent 2f48d31 commit 83efe86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Type/TypeCombinator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1497,7 +1497,7 @@ public static function intersect(Type ...$types): Type
14971497
return $types[0];
14981498
}
14991499

1500-
return new IntersectionType(array_values($types));
1500+
return new IntersectionType($types);
15011501
}
15021502

15031503
public static function removeFalsey(Type $type): Type

0 commit comments

Comments
 (0)