Skip to content

Commit 3d6a188

Browse files
committed
Correct the syntax of superglobals in double-quoted string unit test to one that is valid PHP.
1 parent 87eef16 commit 3d6a188

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/CodeAnalysis/VariableAnalysisUnitTest.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,8 @@ function function_with_superglobals() {
375375
echo print_r($_SESSION, true);
376376
echo print_r($_REQUEST, true);
377377
echo print_r($_ENV, true);
378-
echo "$GLOBALS['whatever']";
379-
echo "$GLOBALS['whatever'] $var";
378+
echo "{$GLOBALS['whatever']}";
379+
echo "{$GLOBALS['whatever']} $var";
380380
}
381381

382382
function function_with_heredoc() {

0 commit comments

Comments
 (0)