1 | <?php |
||
11 | class GetAccounts extends Response |
||
12 | { |
||
13 | const SEG_ACCOUNT_INFORMATION = 'HIUPD'; |
||
14 | |||
15 | /** @var array */ |
||
16 | protected $accounts = array(); |
||
17 | |||
18 | /** |
||
19 | * @return array |
||
20 | */ |
||
21 | public function getAccountsArray() |
||
35 | |||
36 | /** |
||
37 | * Creates a Account model from array. |
||
38 | * |
||
39 | * @param array $array |
||
40 | * @return Account |
||
41 | */ |
||
42 | protected function createModelFromArray(array $array) |
||
60 | } |
||
61 |
There are different options of fixing this problem.
If you want to be on the safe side, you can add an additional type-check:
If you are sure that the expression is traversable, you might want to add a doc comment cast to improve IDE auto-completion and static analysis:
Mark the issue as a false-positive: Just hover the remove button, in the top-right corner of this issue for more options.