| 1 | <?php |
||
| 5 | class Optin |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var string |
||
| 9 | */ |
||
| 10 | private $ref; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param string $dataRef |
||
|
|
|||
| 14 | */ |
||
| 15 | public function __construct($ref) |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @return string |
||
| 22 | */ |
||
| 23 | public function getRef() |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param array $payload |
||
| 30 | * |
||
| 31 | * @return static |
||
| 32 | */ |
||
| 33 | public static function create(array $payload) |
||
| 37 | } |
||
| 38 |
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.