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
355355 $ expected = $ token ->id ;
356356 $ name = '' ;
357357 continue 2 ;
358-
359- case T_CURLY_OPEN :
360- case T_DOLLAR_OPEN_CURLY_BRACES :
361- $ level ++;
362358 }
363359
364360 if ($ expected ) {
Original file line number Diff line number Diff line change @@ -20,13 +20,15 @@ $loader->addDirectory(__DIR__ . '/files/'); // purposely doubled
2020$ loader ->addDirectory (__DIR__ . '/file/interface.php ' ); // as file
2121$ loader ->addDirectory (__DIR__ . '/file/class.const.php ' );
2222$ loader ->addDirectory (__DIR__ . '/file/trait.php ' );
23+ $ loader ->addDirectory (__DIR__ . '/file/bug-28.php ' );
2324$ loader ->excludeDirectory (__DIR__ . '/files/exclude ' );
2425$ loader ->excludeDirectory (__DIR__ . '/files/exclude2/excluded.php ' );
2526$ loader ->register ();
2627
2728Assert::false (class_exists ('ConditionalClass ' )); // files/conditional.class.php
2829Assert::true (interface_exists ('TestInterface ' )); // file/interface.php
2930Assert::true (trait_exists ('TestTrait ' )); // file/trait.php
31+ Assert::true (class_exists ('Bug28 ' )); // file/bug-28.php
3032
3133Assert::true (class_exists ('TestClass ' )); // files/namespaces1.php
3234Assert::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