Skip to content

Middleware use case with callable/variadic types #4358

Answered by ondrejmirtes
melya asked this question in Support
Discussion options

You must be logged in to vote

Hi, this is how you get rid of the PHPDoc parse error https://phpstan.org/r/2e6a16d4-033d-433b-9b0a-33e384164c07 (see the docs https://phpstan.org/writing-php-code/phpdoc-types#callables), but variadics in generics aren't supported yet.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@melya
Comment options

@ondrejmirtes
Comment options

@melya
Comment options

Answer selected by ondrejmirtes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants