File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -355,10 +355,6 @@ private function scanPhp(string $file): array
355
355
$ expected = $ token ->id ;
356
356
$ name = '' ;
357
357
continue 2 ;
358
-
359
- case T_CURLY_OPEN :
360
- case T_DOLLAR_OPEN_CURLY_BRACES :
361
- $ level ++;
362
358
}
363
359
364
360
if ($ expected ) {
Original file line number Diff line number Diff line change @@ -20,13 +20,15 @@ $loader->addDirectory(__DIR__ . '/files/'); // purposely doubled
20
20
$ loader ->addDirectory (__DIR__ . '/file/interface.php ' ); // as file
21
21
$ loader ->addDirectory (__DIR__ . '/file/class.const.php ' );
22
22
$ loader ->addDirectory (__DIR__ . '/file/trait.php ' );
23
+ $ loader ->addDirectory (__DIR__ . '/file/bug-28.php ' );
23
24
$ loader ->excludeDirectory (__DIR__ . '/files/exclude ' );
24
25
$ loader ->excludeDirectory (__DIR__ . '/files/exclude2/excluded.php ' );
25
26
$ loader ->register ();
26
27
27
28
Assert::false (class_exists ('ConditionalClass ' )); // files/conditional.class.php
28
29
Assert::true (interface_exists ('TestInterface ' )); // file/interface.php
29
30
Assert::true (trait_exists ('TestTrait ' )); // file/trait.php
31
+ Assert::true (class_exists ('Bug28 ' )); // file/bug-28.php
30
32
31
33
Assert::true (class_exists ('TestClass ' )); // files/namespaces1.php
32
34
Assert::true (class_exists ('MySpace1\TestClass1 ' )); // files/namespaces1.php
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ $ foo = '' ;
6
+ $ foo = "Hello {$ foo }! " ;
7
+
8
+ class Bug28
9
+ {
10
+ public function fn ()
11
+ {
12
+ }
13
+ }
You can’t perform that action at this time.
0 commit comments