mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Make purity test more strict again
This commit is contained in:
parent
0fc8c9a9bb
commit
3dbfedb51a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user