• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wol-soft / php-json-schema-model-generator / 23368127510

21 Mar 2026 12:37AM UTC coverage: 98.585% (-0.1%) from 98.693%
23368127510

Pull #115

github

Enno Woortmann
Refactor PropertyMerger public API for clarity and reduced parameter count

- Replace ?string $compositionProcessor with bool $isAllOf in merge(),
  removing the stringly-typed is_a() check from PropertyMerger itself
- Split narrowToIntersection() (8 params) into two focused methods:
  narrowToIntersection(existing, incoming, message) for allOf branch merging
  with nullable-preservation semantics, and applyTypeConstraint(existing,
  constraintType, message) for strict patternProperties enforcement
- Move $implicitNull derivation inside PropertyMerger (read from
  $generatorConfiguration directly) instead of requiring callers to pass it
- Replace $existingProperty/$incomingProperty params with bool $isRequired
  in buildEffectiveTypeSet, removing the PropertyInterface dependency
- Extract resolveEffectiveIntersection() to eliminate the duplicated
  validation + effective-set computation shared by both public methods
- Inline applyAllOfIntersection() which had become a trivial one-liner
Pull Request #115: Type system (Type widening for compositions, union types)

481 of 491 new or added lines in 51 files covered. (97.96%)

1 existing line in 1 file now uncovered.

3831 of 3886 relevant lines covered (98.58%)

549.13 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

99.09
/src/PropertyProcessor/ComposedValue/AbstractComposedValueProcessor.php


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc