1 | <?php |
||
29 | class AddressCollector { |
||
30 | |||
31 | /** @var CollectedAddressMapper */ |
||
32 | private $mapper; |
||
33 | |||
34 | /** @var string */ |
||
35 | private $userId; |
||
36 | |||
37 | /** @var Logger */ |
||
38 | private $logger; |
||
39 | |||
40 | /** |
||
41 | * @param CollectedAddressMapper $mapper |
||
42 | * @param string $UserId |
||
43 | * @param Logger $logger |
||
44 | */ |
||
45 | 3 | public function __construct(CollectedAddressMapper $mapper, $UserId, Logger $logger) { |
|
50 | |||
51 | /** |
||
52 | * Add a new email addresses |
||
53 | * |
||
54 | * Duplicates are ignored |
||
55 | * |
||
56 | * @param string[] $addresses |
||
57 | */ |
||
58 | 2 | public function addAddresses($addresses) { |
|
72 | |||
73 | /** |
||
74 | * Find and return all known and matching email addresses |
||
75 | * |
||
76 | * @param Horde_Mail_Rfc822_Address[] $term |
||
77 | * @param string $UserId |
||
|
|||
78 | */ |
||
79 | 1 | public function searchAddress($term) { |
|
85 | |||
86 | } |
||
87 |
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.