| 1 | <?php |
||
| 11 | class Router extends LeagueRouter implements RequestHandlerInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @return Route[] |
||
| 15 | */ |
||
| 16 | public function getRoutes(): array |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param Route $route |
||
|
|
|||
| 23 | */ |
||
| 24 | public function removeRoute(Route $routeToRemove): void |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param ServerRequestInterface $request |
||
| 35 | * @return ResponseInterface |
||
| 36 | */ |
||
| 37 | public function handle(ServerRequestInterface $request): ResponseInterface |
||
| 41 | } |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.