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

Check for variadic functions

This commit is contained in:
Matthew Brown 2020-03-16 11:46:44 -04:00
parent 9556e9ad69
commit a4add37293

View File

@ -541,7 +541,7 @@ class AtomicMethodCallAnalyzer extends CallAnalyzer
}
if (!$has_packed_arg) {
$has_variadic_param = false;
$has_variadic_param = $method_storage->variadic;
foreach ($method_storage->params as $param) {
$has_variadic_param = $has_variadic_param || $param->is_variadic;