Skip to content

test: cover falsy values in v3 validation - #17

Merged
mychidarko merged 1 commit into
leafsphp:v3.xfrom
debba:test/falsy-validation-v3
Nov 18, 2026
Merged

mychidarko merged 1 commit into
leafsphp:v3.xfrom
debba:test/falsy-validation-v3

Conversation

@debba

@debba debba commented Nov 18, 2026

Copy link
Copy Markdown

Summary

PR #14 already merged the falsy-value handling into v3.x. This follow-up to #15 adds regression tests and a changelog note for the next minor release.

The tests verify that 0, "0", and false count as present and are validated when supplied to an optional field. They also verify that null, an empty string, and an empty array still count as absent.

Testing

36 tests passed on PHP 8.3.

@debba debba mentioned this pull request Nov 18, 2026
5 tasks
@mychidarko
mychidarko merged commit 969eebe into leafsphp:v3.x Nov 18, 2026
15 checks passed
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

Successfully merging this pull request may close these issues.

2 participants