| 1 | <?php |
||
| 13 | class AssignRoleAction extends Action |
||
| 14 | { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var \App\Containers\Authorization\Data\Repositories\AssignRoleTask |
||
| 18 | */ |
||
| 19 | private $assignRoleTask; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * GetAdminRoleAction constructor. |
||
| 23 | * |
||
| 24 | * @param \App\Containers\Authorization\Data\Repositories\AssignRoleTask $assignRoleTask |
||
| 25 | */ |
||
| 26 | public function __construct(AssignRoleTask $assignRoleTask) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param $userId |
||
| 33 | * @param $roleName |
||
| 34 | */ |
||
| 35 | public function run($userId, $roleName) |
||
| 39 | } |
||
| 40 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..