Skip to content

Invalid error about int argument of array_fill #5515

@janedbal

Description

@janedbal

Bug report

See example, it produces Parameter #2 $count of function array_fill expects int<0, max>, int given.

Appeared when upgrading from 0.12.94 to 0.12.96

Code snippet that reproduces the problem

https://phpstan.org/r/d648b768-ec3c-4992-8897-1e7de2853c1a

Expected output

No error

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions