Skip to content

Commit

Permalink
Merge pull request #5063 from derrabus/improvement/array-result-types
Browse files Browse the repository at this point in the history
Fix array types on ArrayResult
  • Loading branch information
derrabus authored Dec 1, 2021
2 parents 502ab8a + 698616d commit e3dd852
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Cache/ArrayResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
final class ArrayResult implements Result
{
/** @var mixed[] */
/** @var list<array<string, mixed>> */
private $data;

/** @var int */
Expand All @@ -24,7 +24,7 @@ final class ArrayResult implements Result
private $num = 0;

/**
* @param mixed[] $data
* @param list<array<string, mixed>> $data
*/
public function __construct(array $data)
{
Expand Down Expand Up @@ -112,7 +112,7 @@ public function free(): void
}

/**
* @return mixed|false
* @return array<string, mixed>|false
*/
private function fetch()
{
Expand Down

0 comments on commit e3dd852

Please sign in to comment.