| 1 | <?php declare(strict_types=1); |
||
| 5 | class FioAccount |
||
| 6 | { |
||
| 7 | |||
| 8 | /** @var Bank */ |
||
| 9 | private $account; |
||
| 10 | |||
| 11 | /** @var string */ |
||
| 12 | private $token; |
||
| 13 | |||
| 14 | |||
| 15 | public function __construct(string $account, string $token) |
||
| 20 | |||
| 21 | |||
| 22 | public function getAccount(): string |
||
| 26 | |||
| 27 | |||
| 28 | public function getBankCode(): string |
||
| 32 | |||
| 33 | |||
| 34 | public function getToken(): string |
||
| 38 | |||
| 39 | |||
| 40 | public function __toString() |
||
| 44 | |||
| 45 | } |
||
| 46 |
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..