The former implementation of the Required rule validated '0' to be invalid. But as transferred query and post data always comes as strings, this would be unexpected behaviour.
The rule now checks for null and empty strings, arrays and Countable instances.
Integration test for Required rule has also been extended.
Any other required-* rule has also been fixed.
The former implementation of the Required rule validated '0' to be invalid. But as transferred query and post data always comes as strings, this would be unexpected behaviour. The rule now checks for null and empty strings, arrays and Countable instances. Integration test for Required rule has also been extended. Any other required-* rule has also been fixed.