Skip to content

Commit 75f0fc3

Browse files
VincentLangletstaabm
authored andcommitted
Update comments
1 parent c4b0b52 commit 75f0fc3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/PHPStan/Rules/Variables/data/dynamic-access.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,18 @@ public function testScope(): void
3535
if ($name === 'foo') {
3636
echo $$name; // ok
3737
echo $foo; // ok
38-
echo $bar;
38+
echo $bar; // not ok
3939
} elseif ($name === 'bar') {
4040
echo $$name; // ok
41-
echo $foo;
41+
echo $foo; // not ok
4242
echo $bar; // ok
4343
} else {
44-
echo $$name; // ok
45-
echo $foo;
46-
echo $bar;
44+
echo $$name; // not ok
45+
echo $foo; // not ok
46+
echo $bar; // not ok
4747
}
4848

49-
echo $$name; // ok
49+
echo $$name; // ok for foo and bar but not buz
5050
echo $foo;
5151
echo $bar;
5252
}

0 commit comments

Comments
 (0)