diff --git a/src/Metadata/Parameter.php b/src/Metadata/Parameter.php index 3b4b27e018..d51467b72e 100644 --- a/src/Metadata/Parameter.php +++ b/src/Metadata/Parameter.php @@ -24,15 +24,15 @@ abstract class Parameter { /** - * @param (array&array{type?: string, default?: string})|null $schema - * @param array $extraProperties - * @param ParameterProviderInterface|callable|string|null $provider - * @param list $properties a list of properties this parameter applies to (works with the :property placeholder) - * @param FilterInterface|string|null $filter - * @param mixed $constraints an array of Symfony constraints, or an array of Laravel rules - * @param Type $nativeType the PHP native type, we cast values to an array if its a CollectionType, if not and it's an array with a single value we use it (eg: HTTP Header) - * @param ?bool $castToNativeType whether API Platform should cast your parameter to the nativeType declared - * @param ?callable(mixed): mixed $castFn the closure used to cast your parameter, this gets called only when $castToNativeType is set + * @param array{type?: string, default?: string, ...array}|null $schema + * @param array $extraProperties + * @param ParameterProviderInterface|callable|string|null $provider + * @param list $properties a list of properties this parameter applies to (works with the :property placeholder) + * @param FilterInterface|string|null $filter + * @param mixed $constraints an array of Symfony constraints, or an array of Laravel rules + * @param Type $nativeType the PHP native type, we cast values to an array if its a CollectionType, if not and it's an array with a single value we use it (eg: HTTP Header) + * @param ?bool $castToNativeType whether API Platform should cast your parameter to the nativeType declared + * @param ?callable(mixed): mixed $castFn the closure used to cast your parameter, this gets called only when $castToNativeType is set */ public function __construct( protected ?string $key = null, @@ -64,7 +64,7 @@ public function getKey(): ?string } /** - * @return (array&array{type?: string, default?: string})|null $schema + * @return array{type?: string, default?: string, ...array}|null $schema */ public function getSchema(): ?array { @@ -180,7 +180,7 @@ public function withPriority(int $priority): static } /** - * @param array{type?: string} $schema + * @param array{type?: string, default?: string, ...array}|null $schema */ public function withSchema(array $schema): static {