Skip to content

Commit

Permalink
Fixed AccountCollection index type (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
juniwalk authored Jun 19, 2024
1 parent 0406b9b commit be9aa67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Account/AccountCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
use h4kuna\Fio\Exceptions;

/**
* @implements \IteratorAggregate<int, FioAccount>
* @implements \IteratorAggregate<string, FioAccount>
*/
class AccountCollection implements \Countable, \IteratorAggregate
{
/** @var array<FioAccount> */
/** @var array<string, FioAccount> */
private array $accounts = [];


Expand Down Expand Up @@ -61,7 +61,7 @@ public function count(): int


/**
* @return \ArrayIterator<int, FioAccount>
* @return \ArrayIterator<string, FioAccount>
*/
public function getIterator(): \ArrayIterator
{
Expand Down

0 comments on commit be9aa67

Please sign in to comment.