Skip to content

fix: 7119 parameter array shape uses invalid syntax #7151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 4.1
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/Metadata/Parameter.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
abstract class Parameter
{
/**
* @param (array<string, mixed>&array{type?: string, default?: string})|null $schema
* @param array<string, mixed> $extraProperties
* @param ParameterProviderInterface|callable|string|null $provider
* @param list<string> $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 array{type?: string, default?: string, ...array<string, mixed>}|null $schema
* @param array<string, mixed> $extraProperties
* @param ParameterProviderInterface|callable|string|null $provider
* @param list<string> $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
*/
public function __construct(

Check failure on line 33 in src/Metadata/Parameter.php

View workflow job for this annotation

GitHub Actions / PHPStan (PHP 8.4)

PHPDoc tag @param has invalid value (array{type?: string, default?: string, ...array<string, mixed>}|null $schema): Unexpected token "array", expected '}' at offset 60
protected ?string $key = null,
protected ?array $schema = null,
protected OpenApiParameter|array|false|null $openApi = null,
Expand Down
Loading