| 1 | <?php |
||
| 10 | class Router extends LeagueRouter implements RequestHandlerInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @return Route[] |
||
| 14 | */ |
||
| 15 | public function getRoutes(): array |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param Route $route |
||
|
|
|||
| 22 | */ |
||
| 23 | public function removeRoute(Route $routeToRemove): void |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param ServerRequestInterface $request |
||
| 34 | * @return ResponseInterface |
||
| 35 | */ |
||
| 36 | 8 | public function handle(ServerRequestInterface $request): ResponseInterface |
|
| 40 | } |
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.