docs: add @phpstan-return

This commit is contained in:
kenjis 2023-07-04 18:48:26 +09:00
parent f6e636256e
commit f5a284154c
No known key found for this signature in database
GPG Key ID: BD254878922AF198

View File

@ -26,6 +26,9 @@ final class DefinedRouteCollector
$this->routeCollection = $routes;
}
/**
* @phpstan-return Generator<array{method: string, route: string, name: string, handler: string}>
*/
public function collect(): Generator
{
$methods = [