| 1 | <?php |
||
| 10 | class UserShowUseCase |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var User[] |
||
| 14 | */ |
||
| 15 | private $users; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param User[] $users |
||
| 19 | */ |
||
| 20 | 1 | public function __construct(User ...$users) |
|
| 24 | |||
| 25 | /** |
||
| 26 | * @param int|null $rawUserId |
||
| 27 | * @return User|null |
||
| 28 | */ |
||
| 29 | 1 | public function run(?int $rawUserId): ?User |
|
| 40 | } |
||
| 41 |
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..