Skip to content

Commit

Permalink
fix parser file class
Browse files Browse the repository at this point in the history
  • Loading branch information
kiss291323003 committed Jul 3, 2020
1 parent bec7e41 commit 5fa3585
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Annotation/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -549,8 +549,11 @@ public static function getFileDeclareClass(string $file): ?string
for ($j = $i + 1; $j < count($tokens); $j++) {
if ($tokens[$j] === '{') {
$class = $tokens[$i + 2][1];
break;
}
}
}elseif ($class){
break;
}
}
if (!empty($class)) {
Expand Down

0 comments on commit 5fa3585

Please sign in to comment.