| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | interface Plugin |
||
| 30 | { |
||
| 31 | /** |
||
| 32 | * Gets the plugin priority; larger means first. |
||
| 33 | * |
||
| 34 | * @return int The plugin priority |
||
| 35 | */ |
||
| 36 | public function getPriority(): int; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Middleware request–response handling. |
||
| 40 | * |
||
| 41 | * @param \Psr\Http\Message\ServerRequestInterface $request The server request |
||
| 42 | * @param \Psr\Http\Message\ResponseInterface $response The response |
||
| 43 | * @param callable $callable A function accepting a Request and a Response, returning a Response. |
||
|
|
|||
| 44 | * @return \Psr\Http\Message\ResponseInterface The response |
||
| 45 | */ |
||
| 46 | public function __invoke(Request $request, Response $response, callable $next): Response; |
||
| 47 | } |
||
| 48 |
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.