Skip to content

Refine RouteParserInterface type annotations for query-params.#3400

Merged
odan merged 3 commits into
slimphp:4.xfrom
papparazzo:phpstan_type_annotation_in_route_parser_interface
Aug 20, 2025
Merged

Refine RouteParserInterface type annotations for query-params.#3400
odan merged 3 commits into
slimphp:4.xfrom
papparazzo:phpstan_type_annotation_in_route_parser_interface

Conversation

@papparazzo
Copy link
Copy Markdown
Contributor

Expanded the $queryParams type to support arrays of strings, increasing flexibility for query parameters.

This allows you to pass arrays as query parameters and avoids the need for ugly workarounds with PHPStan stub files just to silence PHPStan.

Expanded the `$queryParams` type to allow arrays of strings, improving flexibility for query parameters. Adjusted formatting for better readability and consistency in method parameter annotations.
@coveralls
Copy link
Copy Markdown

coveralls commented Jul 24, 2025

Coverage Status

coverage: 99.523%. remained the same
when pulling ad494ae on papparazzo:phpstan_type_annotation_in_route_parser_interface
into 5cb7734 on slimphp:4.x.

@odan odan self-assigned this Aug 16, 2025
@odan
Copy link
Copy Markdown
Contributor

odan commented Aug 16, 2025

Looks good from my side. @akrabat Please check and approve.

@odan odan requested a review from akrabat August 16, 2025 11:12
Copy link
Copy Markdown
Member

@akrabat akrabat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks.

@odan odan merged commit 17eba51 into slimphp:4.x Aug 20, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants