diff --git a/src/WithMultipleOption.php b/src/WithMultipleOption.php index f312a20..28168c3 100644 --- a/src/WithMultipleOption.php +++ b/src/WithMultipleOption.php @@ -46,8 +46,7 @@ function (string \$code) { } /** - * @var list - * @var array> + * @return array> */ private function evaluate(array $context, array $codes, string $attribute, array $labels, ?string $locale = null, ?string $scope = null): array { @@ -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] ?? [], diff --git a/src/WithSimpleOption.php b/src/WithSimpleOption.php index 5f8f28d..35b37b0 100644 --- a/src/WithSimpleOption.php +++ b/src/WithSimpleOption.php @@ -36,7 +36,7 @@ private function compile(string $code, string $attribute, string $labels, string } /** - * @var array + * @return array|string|null>> */ private function evaluate(array $context, string $code, string $attribute, array $labels, ?string $locale = null, ?string $scope = null): array {