Skip to content

Exceptions: $code default value incompatible with type int #4011

@staabm

Description

@staabm

Bug report

not sure whats going on, but phpstan thinks a parameter named $code needs to be an int.

maybe this is something related to php8 named parameters?

it isn't obvious in this case why the variable is expected to be an int.

Code snippet that reproduces the problem

https://phpstan.org/r/35fa7880-bda4-485c-92b2-7fcf1d6e72a5

Expected output

no error

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