This PR adds support for the isNotEmpty assertion operator. The isNotEmpty assertion checks that a value is not null, not 0, not false, not an empty string, not an empty array, and not an empty object. The implementation includes:
Checking that the value is not one of [null, 0, false, '', []].
Ensuring arrays have a length greater than 0.
Ensuring objects have at least one key.
Contribution Checklist:
[ ] The pull request only addresses one issue or adds one feature.
[ ] The pull request does not introduce any breaking changes
[ ] I have added screenshots or gifs to help explain the change if applicable.
Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.
Description
This PR adds support for the isNotEmpty assertion operator. The
isNotEmpty
assertion checks that a value is not null, not 0, not false, not an empty string, not an empty array, and not an empty object. The implementation includes:Contribution Checklist:
Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.
Publishing to New Package Managers
Please see here for more information.