1 | <?php |
||
26 | class RuleMatcher implements RuleMatcherInterface |
||
27 | { |
||
28 | /** |
||
29 | * @var RequestMatcherInterface |
||
30 | */ |
||
31 | private $requestMatcher; |
||
32 | |||
33 | /** |
||
34 | * @var ResponseMatcherInterface |
||
35 | */ |
||
36 | private $responseMatcher; |
||
37 | |||
38 | /** |
||
39 | * @param RequestMatcherInterface $requestMatcher|null Request matcher |
||
|
|||
40 | * @param ResponseMatcherInterface $responseMatcher|null Response matcher |
||
41 | */ |
||
42 | 34 | public function __construct( |
|
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | 26 | public function matches(Request $request, Response $response) |
|
65 | } |
||
66 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$ireland
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was changed, but the annotation was not.