| 1 | <?php |
||
| 13 | class RelayMiddleware implements MiddlewareInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var MiddlewareInterface[] |
||
| 17 | */ |
||
| 18 | private $middlewares; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * FallbackToLegacyApiMiddleware constructor. |
||
| 22 | * |
||
| 23 | * @param EndpointRepository $endpointRepository |
||
|
|
|||
| 24 | */ |
||
| 25 | public function __construct(... $middlewares) |
||
| 29 | |||
| 30 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
||
| 34 | } |
||
| 35 |
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.