Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix array types on ArrayResult #5063

Merged
merged 1 commit into from
Dec 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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