1 | <?php |
||
8 | class Packet extends Message |
||
9 | { |
||
10 | /** |
||
11 | * @var array |
||
12 | */ |
||
13 | protected $notification; |
||
14 | |||
15 | /** |
||
16 | * Set the notification. |
||
17 | * |
||
18 | * @param array $ids |
||
|
|||
19 | * @return Message |
||
20 | */ |
||
21 | public function setNotification($notification) |
||
27 | |||
28 | /** |
||
29 | * To JSON |
||
30 | * Utility method to put the JSON into the |
||
31 | * GCM proper format for sending the message. |
||
32 | * |
||
33 | * @return string |
||
34 | */ |
||
35 | public function toJson() |
||
65 | } |
||
66 |
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.