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

Allow extract array to be passed by ref

This commit is contained in:
Matthew Brown 2018-03-21 11:14:05 -04:00
parent bc0c4322d5
commit 1f57876e48

View File

@ -579,6 +579,7 @@ class CallChecker
if ($function_param
&& $function_param->by_ref
&& $method_id !== 'extract'
) {
if ($arg->value instanceof PhpParser\Node\Scalar
|| $arg->value instanceof PhpParser\Node\Expr\Array_