| 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) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * To JSON |
||
| 29 | * Utility method to put the JSON into the |
||
| 30 | * GCM proper format for sending the message. |
||
| 31 | * |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | public function toJson() |
||
| 64 | } |
||
| 65 |
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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.