Skip to content

Deprecate SimpleSelector::notEmpty() and make it the inverse of isBlank() - #155

Open
gravitypdf-bot wants to merge 3 commits into
mainfrom
fix/issue-138
Open

gravitypdf-bot wants to merge 3 commits into
mainfrom
fix/issue-138

Conversation

@gravitypdf-bot

Copy link
Copy Markdown
Contributor

Fixes #138.

notEmpty() joined its checks with &&, so it could never return true. It now returns ! $this->isBlank() and is marked @deprecated, for removal in 5.0. Nothing in QueryPath calls it.

Tests

SelectorTest gains a data provider checking that notEmpty() is the inverse of isBlank().

Every PR in this set adds its CHANGELOG line at the end of # Unreleased changes, so each one after the first needs a one-line conflict resolved there.

🤖 Generated with Claude Code

gravitypdf-bot and others added 3 commits October 26, 2026 17:18
…nk()

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Oct 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.46%. Comparing base (6ae6acf) to head (2df0411).
⚠️ Report is 19 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #155      +/-   ##
============================================
+ Coverage     90.69%   91.46%   +0.77%     
- Complexity     1424     1435      +11     
============================================
  Files            25       26       +1     
  Lines          3170     3177       +7     
============================================
+ Hits           2875     2906      +31     
+ Misses          295      271      -24     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

SimpleSelector::notEmpty() can never return true; deprecate it in favour of isBlank()

1 participant