Skip to content

vec(positive_int()) throws away positive from int #11

@simPod

Description

@simPod

\PHPStan\dumpType(vec(positive_int())->assert([]));

gives Dumped type: list<int>, it should give int<1, max>.

v1
psl 2.3.1
phpstan v1.9.14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions