From 1f57876e48813fadb097a640857221a78d68fd82 Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Wed, 21 Mar 2018 11:14:05 -0400 Subject: [PATCH] Allow extract array to be passed by ref --- src/Psalm/Checker/Statements/Expression/CallChecker.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Psalm/Checker/Statements/Expression/CallChecker.php b/src/Psalm/Checker/Statements/Expression/CallChecker.php index 5ee5ffacb..040f123b7 100644 --- a/src/Psalm/Checker/Statements/Expression/CallChecker.php +++ b/src/Psalm/Checker/Statements/Expression/CallChecker.php @@ -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_