1 | <?php |
||
15 | class BaseHostPlugin implements Plugin |
||
16 | { |
||
17 | /** |
||
18 | * @var UriInterface |
||
19 | */ |
||
20 | private $baseUri; |
||
21 | |||
22 | /** |
||
23 | * @var bool |
||
24 | */ |
||
25 | private $replace; |
||
26 | |||
27 | /** |
||
28 | * Available options for $config are: |
||
29 | * - replace: bool True will replace all hosts, false will only add host when none is specified. |
||
30 | * |
||
31 | * @param UriInterface $baseUri |
||
32 | * @param bool $replace |
||
|
|||
33 | */ |
||
34 | public function __construct(UriInterface $baseUri, array $config = []) |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | public function handleRequest(RequestInterface $request, callable $next, callable $first) |
||
59 | |||
60 | /** |
||
61 | * @param OptionsResolver $resolver |
||
62 | */ |
||
63 | private function configureOptions(OptionsResolver $resolver) |
||
70 | } |
||
71 |
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
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.