Skip to content

Commit be9aa67

Browse files
authored
Fixed AccountCollection index type (#58)
1 parent 0406b9b commit be9aa67

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Account/AccountCollection.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
use h4kuna\Fio\Exceptions;
66

77
/**
8-
* @implements \IteratorAggregate<int, FioAccount>
8+
* @implements \IteratorAggregate<string, FioAccount>
99
*/
1010
class AccountCollection implements \Countable, \IteratorAggregate
1111
{
12-
/** @var array<FioAccount> */
12+
/** @var array<string, FioAccount> */
1313
private array $accounts = [];
1414

1515

@@ -61,7 +61,7 @@ public function count(): int
6161

6262

6363
/**
64-
* @return \ArrayIterator<int, FioAccount>
64+
* @return \ArrayIterator<string, FioAccount>
6565
*/
6666
public function getIterator(): \ArrayIterator
6767
{

0 commit comments

Comments
 (0)