1 | <?php |
||
20 | class AddressCollector { |
||
21 | |||
22 | /** @var CollectedAddressMapper */ |
||
23 | private $mapper; |
||
24 | |||
25 | /** @var string */ |
||
26 | private $userId; |
||
27 | |||
28 | /** @var Logger */ |
||
29 | private $logger; |
||
30 | |||
31 | /** |
||
32 | * @param CollectedAddressMapper $mapper |
||
33 | * @param string $UserId |
||
34 | * @param Logger $logger |
||
35 | */ |
||
36 | 3 | public function __construct(CollectedAddressMapper $mapper, $UserId, Logger $logger) { |
|
41 | |||
42 | /** |
||
43 | * Add a new email addresses |
||
44 | * |
||
45 | * Duplicates are ignored |
||
46 | * |
||
47 | * @param string[] $addresses |
||
48 | */ |
||
49 | 2 | public function addAddresses($addresses) { |
|
63 | |||
64 | /** |
||
65 | * Find and return all known and matching email addresses |
||
66 | * |
||
67 | * @param Horde_Mail_Rfc822_Address[] $term |
||
68 | * @param string $UserId |
||
|
|||
69 | */ |
||
70 | 1 | public function searchAddress($term) { |
|
76 | |||
77 | } |
||
78 |
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.