| 1 | <?php |
||
| 20 | class DissociateUserFromOrganization extends Action |
||
| 21 | { |
||
| 22 | use DeleteRecordTrait, LookupAssociationTrait; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param string $user |
||
| 26 | * @param string $organization |
||
| 27 | * @return null|\yii\base\Model|\yii\web\Response |
||
| 28 | * @throws HttpException |
||
| 29 | */ |
||
| 30 | public function run( |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @inheritdoc |
||
| 50 | * @param UserAssociation $record |
||
|
|
|||
| 51 | * @return bool |
||
| 52 | */ |
||
| 53 | protected function performAction(UserAssociation $association): bool |
||
| 57 | } |
||
| 58 |
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.