|
24 | 24 | abstract class Parameter
|
25 | 25 | {
|
26 | 26 | /**
|
27 |
| - * @param (array<string, mixed>&array{type?: string, default?: string})|null $schema |
28 |
| - * @param array<string, mixed> $extraProperties |
29 |
| - * @param ParameterProviderInterface|callable|string|null $provider |
30 |
| - * @param list<string> $properties a list of properties this parameter applies to (works with the :property placeholder) |
31 |
| - * @param FilterInterface|string|null $filter |
32 |
| - * @param mixed $constraints an array of Symfony constraints, or an array of Laravel rules |
33 |
| - * @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) |
34 |
| - * @param ?bool $castToNativeType whether API Platform should cast your parameter to the nativeType declared |
35 |
| - * @param ?callable(mixed): mixed $castFn the closure used to cast your parameter, this gets called only when $castToNativeType is set |
| 27 | + * @param array<string, mixed>|null $schema |
| 28 | + * @param array<string, mixed> $extraProperties |
| 29 | + * @param ParameterProviderInterface|callable|string|null $provider |
| 30 | + * @param list<string> $properties a list of properties this parameter applies to (works with the :property placeholder) |
| 31 | + * @param FilterInterface|string|null $filter |
| 32 | + * @param mixed $constraints an array of Symfony constraints, or an array of Laravel rules |
| 33 | + * @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) |
| 34 | + * @param ?bool $castToNativeType whether API Platform should cast your parameter to the nativeType declared |
| 35 | + * @param ?callable(mixed): mixed $castFn the closure used to cast your parameter, this gets called only when $castToNativeType is set |
| 36 | + * |
| 37 | + * @phpstan-param array<string, mixed>|null $schema |
| 38 | + * |
| 39 | + * @psalm-param array{type?: string, default?: string, ...<string, mixed>}|null $schema |
36 | 40 | */
|
37 | 41 | public function __construct(
|
38 | 42 | protected ?string $key = null,
|
@@ -64,7 +68,11 @@ public function getKey(): ?string
|
64 | 68 | }
|
65 | 69 |
|
66 | 70 | /**
|
67 |
| - * @return (array<string, mixed>&array{type?: string, default?: string})|null $schema |
| 71 | + * @return array<string, mixed>|null |
| 72 | + * |
| 73 | + * @phpstan-return array<string, mixed>|null |
| 74 | + * |
| 75 | + * @psalm-return array{type?: string, default?: string, ...<string, mixed>}|null |
68 | 76 | */
|
69 | 77 | public function getSchema(): ?array
|
70 | 78 | {
|
|
0 commit comments