Skip to content

Commit

Permalink
升级 phpstan/phpstan 到 1.0 (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
NHZEX authored Nov 5, 2021
1 parent 93eb6ee commit 8809bea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Tool/DocTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,9 @@ private function parseRoute(Analysis $analysis, array $controllerClasses)
]);
}

$comment = false === $refMethod->getDocComment() ? $refMethod->getDocComment() : '';
$methodContext = new Context([
'comment' => $refMethod->getDocComment() ?? '',
'comment' => $comment,
'filename' => $refMethod->getFileName(),
'line' => $refMethod->getStartLine(),
'namespace' => $refClass->getNamespaceName(),
Expand Down

0 comments on commit 8809bea

Please sign in to comment.