1 | <?php |
||
20 | class MailhookAsserter { |
||
21 | |||
22 | /** |
||
23 | * @var Assert\NegativeAssertionRunner |
||
24 | */ |
||
25 | protected $negative_runner; |
||
26 | |||
27 | /** |
||
28 | * @var Assert\PositiveAssertionRunner |
||
29 | */ |
||
30 | protected $positive_runner; |
||
31 | |||
32 | public function __construct( |
||
40 | |||
41 | /** |
||
42 | * @param EmailMatcher $matcher,... Matchers to run |
||
|
|||
43 | * |
||
44 | * @return Email[] |
||
45 | */ |
||
46 | public function emailsMatching($matcher = NULL) |
||
52 | |||
53 | /** |
||
54 | * @param EmailMatcher $matcher,... Matchers to run |
||
55 | * |
||
56 | * @return Email |
||
57 | */ |
||
58 | public function firstEmailMatching($matcher = NULL) |
||
65 | |||
66 | /** |
||
67 | * @param EmailMatcher $matcher,... Matchers to run |
||
68 | * |
||
69 | * @return null |
||
70 | */ |
||
71 | public function noEmailMatching($matcher = NULL) |
||
77 | } |
||
78 |
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.