| 1 | <?php |
||
| 5 | class TwitterMessage |
||
| 6 | { |
||
| 7 | /** @var string */ |
||
| 8 | protected $content; |
||
| 9 | protected $to; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @param string $content |
||
|
|
|||
| 13 | * |
||
| 14 | * @return static |
||
| 15 | */ |
||
| 16 | 1 | public static function create() |
|
| 25 | |||
| 26 | /* |
||
| 27 | * @param string $content |
||
| 28 | */ |
||
| 29 | 3 | public function __construct() |
|
| 39 | |||
| 40 | /** |
||
| 41 | * Get Twitter message content. |
||
| 42 | * |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | 3 | public function getContent() |
|
| 49 | |||
| 50 | /** |
||
| 51 | * Get Twitter message receiver. |
||
| 52 | * |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | 1 | public function getReceiver() |
|
| 59 | } |
||
| 60 |
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.