mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
parent
e22491537b
commit
93d66117d0
@ -393,6 +393,10 @@ class Functions
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($function_id === 'func_num_args' || $function_id === 'func_get_args') {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if ($function_id === 'count' && isset($args[0]) && $type_provider) {
|
if ($function_id === 'count' && isset($args[0]) && $type_provider) {
|
||||||
$count_type = $type_provider->getType($args[0]->value);
|
$count_type = $type_provider->getType($args[0]->value);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user