Skip to content

Commit 6bd2c0b

Browse files
committed
Test case for unused-variable warning bug with pass-by-ref values that are only assigned to.
1 parent 1080e1f commit 6bd2c0b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/CodeAnalysis/VariableAnalysisUnitTest.inc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,3 +416,7 @@ class ClassWithSymbolicRefProperty {
416416
}
417417
}
418418
}
419+
420+
function function_with_pass_by_ref_assign_only_arg(&$return_value) {
421+
$return_value = 42;
422+
}

0 commit comments

Comments
 (0)