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

api-platform / core / 25493683530

07 May 2026 11:43AM UTC coverage: 28.9% (+0.001%) from 28.899%
25493683530

push

github

web-flow
fix(symfony): Symfony 8.1 compatibility (#7955)

* fix(symfony): skip DateTimeValueObjectTransformer registration on FrameworkBundle 8.1+

FrameworkBundle 8.1 registers DateTimeValueObjectTransformer itself as
.json_streamer.value_object_transformer.date_time and ships
DeprecateJsonStreamerValueTransformerTagPass, which appends the
json_streamer.property_value_transformer tag to every service still
carrying the deprecated json_streamer.value_transformer tag. Our service
implements ValueObjectTransformerInterface, not
PropertyValueTransformerInterface, so TransformerPass validation rejects
the container.

Gate the registration on the absence of the deprecation pass so we only
register on json-streamer 8.1 + framework-bundle <8.1, and drop the
deprecated tag from our own registration.

Closes #7954

* ci: add PHPUnit lane against Symfony 8.1 dev (framework-bundle + json-streamer)

The existing phpunit-symfony-next lane resolves to framework-bundle
8.0.x-dev because behat/* and friends-of-behat/* dev deps cap
symfony/console at <8, which excludes framework-bundle 8.1. This means
the FB 8.1 + json-streamer 8.1 combination — the one that triggers
issue #7954 — is not exercised in CI today.

Add a dedicated phpunit-symfony-edge lane that drops the behat dev deps
before resolving and explicitly pins framework-bundle and json-streamer
to 8.1.x-dev. Marked continue-on-error since 8.1 is still pre-stable
and unrelated upstream breakage shouldn't block PRs.

* test(symfony): guard FriendsOfBehatSymfonyExtensionBundle on class_exists

The Symfony 8.1 PHPUnit lane removes friends-of-behat/symfony-extension
from the dev deps to satisfy framework-bundle 8.1 / symfony-console 8
constraints. cache:clear runs outside the phpunit env, so $_ENV[APP_PHPUNIT]
is null and the kernel tries to instantiate a class that no longer exists.

Mirror the existing class_exists gates on DoctrineMongoDBBundle and McpBundle
so the kernel boots cleanly in any environment that doesn't hav... (continued)

3 of 3 new or added lines in 2 files covered. (100.0%)

2295 existing lines in 114 files now uncovered.

18435 of 63790 relevant lines covered (28.9%)

78.75 hits per line

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

100.0
/src/State/SerializerAwareProviderTrait.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