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

api-platform / core / 21820944704

09 Feb 2026 10:13AM UTC coverage: 29.604% (-0.06%) from 29.666%
21820944704

Pull #7737

github

soyuka
fix(serializer): prevent ItemNormalizer from intercepting DateTimeImmutable

| Q             | A
| ------------- | ---
| Branch?       | main
| Tickets       | Closes #7733
| License       | MIT
| Doc PR        | ∅

When a custom normalizer delegates DateTimeImmutable normalization to the
serializer with a context containing force_resource_class, ItemNormalizer
incorrectly claims support. The fix validates force_resource_class against
stateOptions entity class to prevent context leakage.
Pull Request #7737: Fix ItemNormalizer priority conflict intercepting DateTimeImmutable objects

12 of 12 new or added lines in 1 file covered. (100.0%)

285 existing lines in 3 files now uncovered.

17581 of 59387 relevant lines covered (29.6%)

83.45 hits per line

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

65.18
/src/JsonSchema/SchemaFactory.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