Skip to content

Conversation

@petrdobr
Copy link
Contributor

@petrdobr petrdobr commented Nov 4, 2025

What was changed

Added new Assert::blank() method. This method is successful if data is blank, .i.e. - empty array, empty string, null or countable object with no elements. It throws exception if non-blank data is present: any boolean data, any number (including 0), any string (including "0"), any countable object with 1 or more elements.

See commit history for details.

Why?

In order to fill Assert methods library

Checklist

  • Tested
    • Tested manually
    • Unit tests added
  • Documentation

@petrdobr petrdobr requested a review from a team as a code owner November 4, 2025 19:08
@roxblnfk roxblnfk merged commit 67bb937 into 1.x Nov 4, 2025
2 checks passed
@roxblnfk roxblnfk deleted the feat/add-assert-blank branch November 4, 2025 19:19
This was referenced Nov 4, 2025
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.

3 participants