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