Skip to content

New types, positive_integer and non_empty_string #1657

@norberttech

Description

@norberttech

Like in the description, flow-php/types could really use two new logical types that are very common use case:

  • type_positive_integer()
  • type_non_empty_string()

I would love to also add type_non_null but PHPStan does not seem to have type negation other outside of phpstan-assert :|

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions