nette / schema

📐 Validating data structures against a given Schema.
https://doc.nette.org/schema
Other
886 stars 26 forks source link

Type: Min and Max can be int, float or null. #21

Closed janbarasek closed 3 years ago

janbarasek commented 4 years ago

I think value of min() and max() method should be int, float or null, because current implementation make bad logic in configuration:

Snímek obrazovky 2020-07-01 v 16 23 54

Thanks!

mabar commented 4 years ago

Imho phpstorm error. It's perfectly valid in php

http://sandbox.onlinephpfunctions.com/code/eddefa31d6b078d39b7c78dd155a2368e6369029 https://phpstan.org/r/9bf639d0-5429-4694-bdb4-84b180a02e11