File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -323,7 +323,7 @@ private function getEndLine(array $tokens, $idx)
323
323
private function getPackage (array $ tokens , $ idx )
324
324
{
325
325
$ token = $ tokens [$ idx ];
326
- $ className = $ this ->tname ($ token );
326
+ $ className = $ this ->tname ($ tokens , $ idx );
327
327
$ docComment = $ this ->getDocblock ($ tokens , $ idx );
328
328
329
329
$ result = array (
@@ -337,7 +337,7 @@ private function getPackage(array $tokens, $idx)
337
337
for ($ i = $ idx ; $ i ; --$ i ) {
338
338
$ tconst = $ this ->tconst ($ tokens [$ i ]);
339
339
if ($ tconst === T_NAMESPACE ) {
340
- $ result ['namespace ' ] = $ this ->tname ($ tokens[ $ i ] );
340
+ $ result ['namespace ' ] = $ this ->tname ($ tokens, $ i );
341
341
break ;
342
342
}
343
343
}
@@ -384,8 +384,7 @@ private function arrayToName(array $parts, $join = '\\')
384
384
*/
385
385
private function getSignature (array $ tokens , $ idx )
386
386
{
387
- $ token = $ tokens [$ idx ];
388
- if ($ this ->tname ($ token ) == 'anonymous function ' ) {
387
+ if ($ this ->tname ($ tokens , $ idx ) == 'anonymous function ' ) {
389
388
$ signature = 'anonymous function ' ;
390
389
$ i = $ idx + 1 ;
391
390
} else {
You can’t perform that action at this time.
0 commit comments