1 | <?php |
||
25 | class Complaint extends HttpApi |
||
26 | { |
||
27 | use Pagination; |
||
28 | |||
29 | /** |
||
30 | * @param string $domain Domain to get complaints for |
||
31 | * @param int $limit optional |
||
32 | * |
||
33 | * @return IndexResponse |
||
34 | */ |
||
35 | public function index($domain, $limit = 100) |
||
48 | |||
49 | /** |
||
50 | * @param string $domain Domain to show complaint for |
||
51 | * @param string $address Complaint address |
||
52 | * |
||
53 | * @return ShowResponse |
||
54 | */ |
||
55 | public function show($domain, $address) |
||
63 | |||
64 | /** |
||
65 | * @param string $domain Domain to create complaint for |
||
66 | * @param string $address Complaint address |
||
67 | * @param array $params optional |
||
|
|||
68 | * |
||
69 | * @return CreateResponse |
||
70 | */ |
||
71 | public function create($domain, $address, $code = null, $error = null, $createdAt = null) |
||
82 | |||
83 | /** |
||
84 | * @param string $domain Domain to delete complaint for |
||
85 | * @param string $address Complaint address |
||
86 | * |
||
87 | * @return DeleteResponse |
||
88 | */ |
||
89 | public function delete($domain, $address) |
||
98 | |||
99 | /** |
||
100 | * @param string $domain Domain to delete all bounces for |
||
101 | * |
||
102 | * @return DeleteResponse |
||
103 | */ |
||
104 | public function deleteAll($domain) |
||
112 | } |
||
113 |
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.