Skip to content

Commit

Permalink
Fixed annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
sebprt committed May 24, 2023
1 parent b4b1678 commit c88a47c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/WithMultipleOption.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ function (string \$code) {
}

/**
* @var list<string>
* @var array<string, array<string, string>>
* @return array<int, array<string, array|string|null>>
*/
private function evaluate(array $context, array $codes, string $attribute, array $labels, ?string $locale = null, ?string $scope = null): array
{
Expand All @@ -56,7 +55,7 @@ private function evaluate(array $context, array $codes, string $attribute, array
'scope' => $scope,
'data' => $codes,
'linked_data' => array_map(
fn(string $code) => [
fn (string $code) => [
'attribute' => $attribute,
'code' => $code,
'labels' => $labels[$code] ?? [],
Expand Down
2 changes: 1 addition & 1 deletion src/WithSimpleOption.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private function compile(string $code, string $attribute, string $labels, string
}

/**
* @var array<string, string>
* @return array<int, array<string, array<string, array|string>|string|null>>
*/
private function evaluate(array $context, string $code, string $attribute, array $labels, ?string $locale = null, ?string $scope = null): array
{
Expand Down

0 comments on commit c88a47c

Please sign in to comment.