diff --git a/src/Psalm/Internal/Codebase/Functions.php b/src/Psalm/Internal/Codebase/Functions.php index 1755b4970..fdaf2767a 100644 --- a/src/Psalm/Internal/Codebase/Functions.php +++ b/src/Psalm/Internal/Codebase/Functions.php @@ -393,6 +393,10 @@ class Functions return true; } + if ($function_id === 'func_num_args' || $function_id === 'func_get_args') { + return true; + } + if ($function_id === 'count' && isset($args[0]) && $type_provider) { $count_type = $type_provider->getType($args[0]->value);