1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Unbreak CI

This commit is contained in:
Matt Brown 2020-10-07 18:50:30 -04:00 committed by Daniil Gentili
parent 8d63dfec0a
commit 96af3e041c
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@ use Psalm\Type\Atomic\TNumeric;
use Psalm\Internal\Type\TypeCombination;
use function array_diff_key;
use function array_values;
use function preg_match;
use function strtolower;
/**

View File

@ -415,7 +415,7 @@ class TypeParser
$last_type = \end($intersection_types);
$onlyTKeyedArray = $first_type instanceof TKeyedArray
&& $last_type instanceof TKeyedArray;
|| $last_type instanceof TKeyedArray;
foreach ($intersection_types as $intersection_type) {
if (!$intersection_type instanceof TKeyedArray