Skip to content

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

@awd-studio

Description

@awd-studio

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions