mirror of
https://github.com/ambieco/scribe.git
synced 2026-04-24 09:24:57 +08:00
Update RouteDocBlocker.php
This commit is contained in:
@@ -18,12 +18,7 @@ class RouteDocBlocker
|
||||
protected static array $docBlocks = [];
|
||||
|
||||
/**
|
||||
* @param Route $route
|
||||
*
|
||||
* @throws \ReflectionException
|
||||
* @throws \Exception
|
||||
*
|
||||
* @return array<"method"|"class", DocBlock> Method and class docblocks
|
||||
* @return array{method: DocBlock, class: DocBlock} Method and class docblocks
|
||||
*/
|
||||
public static function getDocBlocksFromRoute(Route $route): array
|
||||
{
|
||||
@@ -31,7 +26,10 @@ class RouteDocBlocker
|
||||
|
||||
return static::getDocBlocks($route, $className, $methodName);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return array{method: DocBlock, class: DocBlock} Method and class docblocks
|
||||
*/
|
||||
public static function getDocBlocks(Route $route, $className, $methodName = null): array
|
||||
{
|
||||
if (is_array($className)) {
|
||||
|
||||
Reference in New Issue
Block a user