File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ matrix:
19
19
env :
20
20
- MINIMUM_STABILITY=dev
21
21
- PACKAGE_VERSION=high
22
+ - php : nightly
23
+ env :
24
+ - MINIMUM_STABILITY=dev
25
+ - PACKAGE_VERSION=high
22
26
23
27
before_script :
24
28
- composer selfupdate
Original file line number Diff line number Diff line change @@ -47,7 +47,9 @@ public static 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
+ if (\defined ('T_NAME_QUALIFIED ' ) && $ tokens [$ j ][0 ] === T_NAME_QUALIFIED ) {
51
+ $ namespace .= '\\' . $ tokens [$ j ][1 ];
52
+ } elseif ($ tokens [$ j ][0 ] === T_STRING ) {
51
53
$ namespace .= '\\' . $ tokens [$ j ][1 ];
52
54
} elseif ($ tokens [$ j ] === '{ ' || $ tokens [$ j ] === '; ' ) {
53
55
break ;
You can’t perform that action at this time.
0 commit comments