File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -314,7 +314,7 @@ private function scanPhp($code)
314314 case T_CLASS :
315315 case T_INTERFACE :
316316 case $ T_TRAIT :
317- if ($ level === $ minLevel ) {
317+ if ($ name && $ level === $ minLevel ) {
318318 $ classes [] = $ namespace . $ name ;
319319 }
320320 break ;
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ $loader->setCacheStorage(new DevNullStorage);
1919$ loader ->addDirectory (__DIR__ . '/files ' );
2020$ loader ->addDirectory (__DIR__ . '/files/ ' ); // purposely doubled
2121$ loader ->addDirectory (__DIR__ . '/file/interface.php ' ); // as file
22+ $ loader ->addDirectory (__DIR__ . '/file/class.const.php ' );
2223if (PHP_VERSION_ID >= 50400 ) $ loader ->addDirectory (__DIR__ . '/file/trait.php ' );
2324$ loader ->addDirectory (__DIR__ . '/files.robots ' );
2425$ loader ->register ();
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ /**
4+ * @phpversion 5.5
5+ */
6+
7+ Xyz::class;
8+ Xyz::class;
You can’t perform that action at this time.
0 commit comments