Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Range with nullable #32

Closed
MartkCz opened this issue Nov 3, 2020 · 0 comments
Closed

Range with nullable #32

MartkCz opened this issue Nov 3, 2020 · 0 comments

Comments

@MartkCz
Copy link

MartkCz commented Nov 3, 2020

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

@dg dg closed this as completed in ab5f748 Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant