Skip to content

Range with nullable  #32

@MartkCz

Description

@MartkCz

Version: 1.0.2

'limit' => Expect::int(null)->min(1)->nullable(),

When limit is null, exception throwed "The option 'limit' expects to be int or null in range 1.., null given."

Dump of variable $expected:

int|null:1..

expected:

int:1..|null

then everything is fine

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