Skip to content

Declare ext-ctype and ext-filter - #68

Merged
loevgaard merged 1 commit into
2.xfrom
fix/declare-ext-ctype-filter
Aug 17, 2026
Merged

Declare ext-ctype and ext-filter#68
loevgaard merged 1 commit into
2.xfrom
fix/declare-ext-ctype-filter

Conversation

@loevgaard

Copy link
Copy Markdown
Member

Fixes the Dependency Analysis CI job, red on 2.x since #60 merged.

Details::paymentId() (#60) uses ctype_digit() and the factory's boolean normalizer (#61) uses filter_var(); shipmonk's analyser correctly flags ext-ctype and ext-filter as undeclared shadow dependencies. Both extensions are enabled by default but can be compiled out, so they belong in composer.json next to the existing ext-hash / ext-json declarations that follow the same rule.

This is also why the same job is red on #64, #66 and #67 — they inherit it from 2.x. Merging this (and updating those branches) turns them green.

Reproduced locally with vendor/bin/composer-dependency-analyser before the fix; composer all, composer validate --strict and composer normalize --dry-run are all clean after it. Follow-up to #57.

Details::paymentId() (#60) uses ctype_digit() and the factory's boolean
normalizer (#61) uses filter_var(), and shipmonk's dependency analyser
rightly flags ext-ctype and ext-filter as undeclared shadow dependencies
— the Dependency Analysis CI job has been red on 2.x since #60 merged.

Both extensions are enabled by default but can be compiled out, so they
belong in composer.json alongside the ext-hash / ext-json declarations
that already follow the same rule.
@codecov

codecov Bot commented Aug 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.93%. Comparing base (53b714e) to head (c29c072).

Additional details and impacted files
@@            Coverage Diff            @@
##                2.x      #68   +/-   ##
=========================================
  Coverage     96.93%   96.93%           
  Complexity      144      144           
=========================================
  Files            15       15           
  Lines           392      392           
=========================================
  Hits            380      380           
  Misses           12       12           

☔ 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.

@loevgaard
loevgaard merged commit 4aeed1e into 2.x Aug 17, 2026
21 checks passed
@loevgaard
loevgaard deleted the fix/declare-ext-ctype-filter branch August 17, 2026 06:55
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.

1 participant