| 1 | <?php |
||
| 15 | class RequestUrlResolver implements ResolverInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var RequestStack |
||
| 19 | */ |
||
| 20 | private $requestStack; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * RequestUrlResolver constructor. |
||
| 24 | * |
||
| 25 | * @param string $prefix |
||
|
|
|||
| 26 | */ |
||
| 27 | public function __construct(RequestStack $requestStack) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Resolves an object path to an URI. |
||
| 34 | * |
||
| 35 | * @param string $path Object path |
||
| 36 | * |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | public function resolve(string $path): string |
||
| 51 | } |
||
| 52 |
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.