mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Rollback some changes
This commit is contained in:
parent
889bdca461
commit
0f8a3204f3
@ -2650,6 +2650,10 @@ class SimpleAssertionReconciler extends Reconciler
|
||||
) {
|
||||
$callable_types[] = $type;
|
||||
$redundant = false;
|
||||
} elseif ($type instanceof TArray) {
|
||||
$type = new TCallableKeyedArray($type->type_params);
|
||||
$callable_types[] = $type;
|
||||
$redundant = false;
|
||||
} elseif ($type instanceof TKeyedArray && count($type->properties) === 2) {
|
||||
$type = new TCallableKeyedArray($type->properties);
|
||||
$callable_types[] = $type;
|
||||
|
@ -1411,6 +1411,7 @@ class TypeParser
|
||||
!is_numeric($property_key)
|
||||
|| ($had_optional && !$property_maybe_undefined)
|
||||
|| $type === 'array'
|
||||
|| $type === 'callable-array'
|
||||
|| $previous_property_key != ($property_key - 1)
|
||||
)
|
||||
) {
|
||||
|
Loading…
Reference in New Issue
Block a user