File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,8 @@ public function getClassNameFromFile($file)
47
47
for (; $ i < count ($ tokens ); $ i ++) {
48
48
if ($ tokens [$ i ][0 ] === \T_NAMESPACE ) {
49
49
for ($ j = $ i + 1 ; $ j < count ($ tokens ); $ j ++) {
50
- if ($ tokens [$ j ][0 ] === T_STRING ) {
50
+ $ tokenId = $ tokens [$ j ][0 ];
51
+ if ($ tokenId === T_STRING || $ tokenId === 314 ) {
51
52
$ namespace .= '\\' . $ tokens [$ j ][1 ];
52
53
} elseif ($ tokens [$ j ] === '{ ' || $ tokens [$ j ] === '; ' ) {
53
54
break ;
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public function testClassToFile()
30
30
]), $ candidates );
31
31
}
32
32
33
- public function testClassToFileDeeper ()
33
+ public function testClassToFileDeeper (): void
34
34
{
35
35
$ candidates = $ this ->classToFile ->classToFileCandidates (ClassName::fromString ('Acme \\NamespaceHere \\Hallo ' ));
36
36
You can’t perform that action at this time.
0 commit comments