Skip to content

Commit 7fe54a2

Browse files
committed
Unit test for bug #938
1 parent d841a8e commit 7fe54a2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CodeSniffer/Standards/Generic/Tests/Functions/CallTimePassByReferenceUnitTest.inc

+2
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@ if (is_array($foo = &$this->bar())) {
2626
}
2727

2828
Hooks::run( 'SecondaryDataUpdates', [ $title, $old, $recursive, $parserOutput, &$updates ] );
29+
30+
$foo = Bar(&$fooBar);

CodeSniffer/Standards/Generic/Tests/Functions/CallTimePassByReferenceUnitTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public function getErrorList()
4848
15 => 1,
4949
18 => 2,
5050
23 => 1,
51+
30 => 1,
5152
);
5253

5354
}//end getErrorList()

0 commit comments

Comments
 (0)