File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
tests/PHPStan/Rules/Variables Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1169,14 +1169,14 @@ public function testBug8719(): void
1169
1169
$ this ->analyse ([__DIR__ . '/data/bug-8719.php ' ], []);
1170
1170
}
1171
1171
1172
- public function testDynamicVariableInsideIsset (): void
1172
+ public function testBug13353 (): void
1173
1173
{
1174
1174
$ this ->cliArgumentsVariablesRegistered = true ;
1175
1175
$ this ->polluteScopeWithLoopInitialAssignments = true ;
1176
1176
$ this ->checkMaybeUndefinedVariables = true ;
1177
1177
$ this ->polluteScopeWithAlwaysIterableForeach = true ;
1178
1178
1179
- $ this ->analyse ([__DIR__ . '/data/dynamic-variable-inside-isset .php ' ], [
1179
+ $ this ->analyse ([__DIR__ . '/data/bug-13353 .php ' ], [
1180
1180
[
1181
1181
'Variable $bar might not be defined. ' ,
1182
1182
9 ,
Original file line number Diff line number Diff line change 1
1
<?php declare (strict_types = 1 );
2
2
3
+ namespace Bug13353 ;
4
+
3
5
$ foo = 'bar ' ;
4
6
5
7
if (!isset ($ $ foo )) {
You can’t perform that action at this time.
0 commit comments