| 1 | <?php |
||
| 21 | class AssociateUserToOrganization extends Action |
||
| 22 | { |
||
| 23 | use SaveRecordTrait, LookupAssociationTrait; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var array |
||
| 27 | */ |
||
| 28 | public $validBodyParams = [ |
||
| 29 | 'sortOrder' => 'userOrder', |
||
| 30 | 'state' |
||
| 31 | ]; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @inheritdoc |
||
| 35 | * @param UserAssociation $record |
||
|
|
|||
| 36 | * @return bool |
||
| 37 | */ |
||
| 38 | protected function performAction(UserAssociation $association): bool |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Body params that should be set on the record. |
||
| 45 | * |
||
| 46 | * @return array |
||
| 47 | */ |
||
| 48 | protected function validBodyParams(): array |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @param UserAssociation $record |
||
| 55 | * @inheritDoc |
||
| 56 | */ |
||
| 57 | protected function populate(UserAssociation $record): ActiveRecord |
||
| 70 | } |
||
| 71 |
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.