1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 12:55:26 +01:00

Fix style

This commit is contained in:
Brown 2020-09-14 12:19:30 -04:00 committed by Daniil Gentili
parent 95cc274192
commit 9b31fb4d00
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -413,8 +413,8 @@ class TypeParser
$onlyTKeyedArray = true;
$first_type = reset($intersection_types);
$last_type = end($intersection_types);
$first_type = \reset($intersection_types);
$last_type = \end($intersection_types);
foreach ($intersection_types as $intersection_type) {
if (!$intersection_type instanceof TKeyedArray
@ -433,9 +433,9 @@ class TypeParser
$properties = [];
if ($first_type instanceof TArray) {
array_shift($intersection_types);
\array_shift($intersection_types);
} elseif ($last_type instanceof TArray) {
array_pop($intersection_types);
\array_pop($intersection_types);
}
/** @var TKeyedArray $intersection_type */