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

Make purity test more strict again

This commit is contained in:
Matthew Brown 2019-09-08 11:34:16 -04:00
parent 0fc8c9a9bb
commit 3dbfedb51a

View File

@ -361,6 +361,12 @@ class Functions
return false;
}
foreach ($function_callable->params as $i => $param) {
if ($param->by_ref && isset($args[$i])) {
return false;
}
}
return true;
}