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