Skip to content
Permalink
Browse files

Make purity test more strict again

  • Loading branch information...
muglug committed Sep 8, 2019
1 parent 0fc8c9a commit 3dbfedb51a22281f351bd799f291fe6a7bdc462a
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/Psalm/Internal/Codebase/Functions.php
@@ -361,6 +361,12 @@ public function isCallMapFunctionPure(Codebase $codebase, string $function_id, a
return false;
}
foreach ($function_callable->params as $i => $param) {
if ($param->by_ref && isset($args[$i])) {
return false;
}
}
return true;
}

0 comments on commit 3dbfedb

Please sign in to comment.
You can’t perform that action at this time.