Skip to content

Commit

Permalink
phpstan: define ArrayIterator keys by array-key type
Browse files Browse the repository at this point in the history
  • Loading branch information
hrach committed Jul 2, 2021
1 parent a30c36d commit dbf529d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Result/BufferedResultAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class BufferedResultAdapter implements IResultAdapter
/** @var IResultAdapter */
protected $adapter;

/** @var ArrayIterator<mixed, mixed>|null */
/** @var ArrayIterator<array-key, mixed>|null */
protected $data;


Expand Down Expand Up @@ -87,7 +87,7 @@ public function getNormalizers(): array


/**
* @return ArrayIterator<mixed, mixed>
* @return ArrayIterator<array-key, mixed>
*/
protected function getData(): ArrayIterator
{
Expand All @@ -99,7 +99,7 @@ protected function getData(): ArrayIterator


/**
* @return ArrayIterator<mixed, mixed>
* @return ArrayIterator<array-key, mixed>
*/
protected function fetchData(): ArrayIterator
{
Expand Down

0 comments on commit dbf529d

Please sign in to comment.