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:
parent
bc0c4322d5
commit
1f57876e48
@ -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_
|
||||
|
Loading…
Reference in New Issue
Block a user