Phpstan: Variadic parameter is not compatible / contravariant with a parameter from an interface

Created on 8 Jun 2020  路  3Comments  路  Source: phpstan/phpstan

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

Most helpful comment

All 3 comments

I have the same problem.

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

Was this page helpful?
0 / 5 - 0 ratings