Skip to content

Int range not generic #6810

Open
phpstan/phpstan-src
#2642
@rvanvelzen

Description

Feature request

Int ranges can currently only be specified directly, but it can be helpful to specify the bounds via template parameters.

https://phpstan.org/r/4a865461-61eb-4400-9a49-4a6c1ad58671

Did PHPStan help you today? Did it make you happy in any way?

PHPStan helps us find bugs every day :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions