| 1 | <?php |
||
| 14 | final class InviteGroupMemberCommand |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * The invte emails. |
||
| 18 | * |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | public $emails; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * The validation rules. |
||
| 25 | * |
||
| 26 | * @var string[] |
||
| 27 | */ |
||
| 28 | public $rules = [ |
||
| 29 | 'emails' => 'required|array|email', |
||
| 30 | ]; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Create a new invite group member command instance. |
||
| 34 | * |
||
| 35 | * @param array $email |
||
|
|
|||
| 36 | */ |
||
| 37 | public function __construct($emails) |
||
| 41 | } |
||
| 42 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$irelandis not defined by the methodfinale(...).The most likely cause is that the parameter was changed, but the annotation was not.