Skip to content
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

Variadic parameter is not compatible / contravariant with a parameter from an interface #3403

Closed
awd-studio opened this issue Jun 8, 2020 · 4 comments

Comments

@awd-studio
Copy link

Bug report

After updating to 0.12.26 started to show an error such

Parameter #n $params (array<int, mixed>) of method              
Class::method() is not compatible with  
parameter #n $params (mixed) of method                          
Interface::method().

At the playground it's a bit different: https://phpstan.org/r/d75d5610-04ca-4b95-b7b8-5b9ae55c9141

@limingxinleo
Copy link

I have the same problem.

@forrest79
Copy link
Contributor

The same here: https://phpstan.org/r/e15b01cf-e5d8-4616-bc3e-a16ddf57317e. I had to revert to 0.12.25

@ondrejmirtes
Copy link
Member

Fixed: phpstan/phpstan-src@a599eaa

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants