mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 12:55:26 +01:00
parent
ad5a8c247b
commit
0f9b4003f8
@ -185,7 +185,10 @@ class TypeParser
|
||||
if ($generic_type_value === 'arraylike-object') {
|
||||
$traversable = new TGenericObject('Traversable', $generic_params);
|
||||
$array_acccess = new TGenericObject('ArrayAccess', $generic_params);
|
||||
$countable = new TNamedObject('Countable');
|
||||
|
||||
$traversable->extra_types[$array_acccess->getKey()] = $array_acccess;
|
||||
$traversable->extra_types[$countable->getKey()] = $countable;
|
||||
|
||||
return $traversable;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user