| 1 | <?php |
||
| 14 | class GetAuthenticatedUserTask extends Task |
||
| 15 | { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var \App\Containers\User\Tasks\Auth |
||
| 19 | */ |
||
| 20 | private $auth; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * GetAuthenticatedUserTask constructor. |
||
| 24 | * |
||
| 25 | * @param \App\Containers\User\Tasks\Auth $auth |
||
| 26 | */ |
||
| 27 | public function __construct(Auth $auth) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * get the user object of the current authenticated user. |
||
| 34 | * If token was passed as param then inject it in the returned user object. |
||
| 35 | * |
||
| 36 | * @param null $token |
||
| 37 | * |
||
| 38 | * @return mixed |
||
| 39 | */ |
||
| 40 | public function run($token = null) |
||
| 48 | |||
| 49 | } |
||
| 50 |
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..