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

api-platform / core / 21831106161

09 Feb 2026 03:26PM UTC coverage: 29.608% (-0.06%) from 29.666%
21831106161

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

0 of 13 new or added lines in 1 file covered. (0.0%)

15674 existing lines in 496 files now uncovered.

17584 of 59390 relevant lines covered (29.61%)

83.45 hits per line

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

90.2
/src/Serializer/SerializerContextBuilder.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