Skip to content

IBX-12046: Configured the legacy integration test kernel for property-info and Doctrine native lazy objects - #840

Merged
ViniTou merged 2 commits into
6.0from
IBX-12046-symfony-deprecations-v2
Sep 24, 2026
Merged

ViniTou merged 2 commits into
6.0from
IBX-12046-symfony-deprecations-v2

Conversation

@ViniTou

@ViniTou ViniTou commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor
🎫 Issue IBX-12046

Related PRs:

Description:

Core's own Ibexa\Contracts\Core\Test\IbexaTestKernel (used by phpunit-integration-legacy.xml and the four kernels extending it) loads tests/bundle/Core/Resources/config/{doctrine.php,framework.yaml}, not test-core's config, so it needs the same fixes as test-core#58:

  • framework.property_info.with_constructor_extractor: false — framework-bundle 7.3 deprecates leaving it implicit because the default flips in 8.0; false keeps today's behaviour.
  • dbal.use_savepoints removed — DBAL 4 always uses savepoints and DoctrineBundle deprecates the key.
  • orm.controller_resolver.auto_mapping: false and, on PHP ≥ 8.4 only, orm.enable_native_lazy_objects: true, replacing var-exporter lazy ghosts. The ORM section is always active because IbexaCoreExtension prepends the ibexa_* entity managers.

phpunit-integration.xml uses Ibexa\Tests\Integration\Core\TestKernel, which extends test-core's kernel and inherits its config, so it is covered by test-core#58; its baseline is left as is. phpunit.baseline.xml is unchanged (no kernel boots in unit tests).

Regenerated phpunit-integration-legacy.baseline.xml (PHP 8.4 + 8.3 union): property_info.with_constructor_extractor (×8) and the lazy-ghost LazyGhostTrait / ProxyHelper::generateLazyGhost() entries (×3) are gone, nothing added. The regeneration also dropped the "XML configuration format is deprecated" (×8) and libxml_disable_entity_loader() entries: they no longer trigger with a fresh composer update even without this change (current vendor versions), so they are no longer needed in the baseline.

For QA:

No functional change. Verified locally with a fresh composer update on PHP 8.4 (the CI matrix) and 8.3: phpunit.xml, phpunit-integration.xml and phpunit-integration-legacy.xml exit 0, PHPStan no errors; deptrac and php-cs-fixer clean on 8.4. The Solr legacy suite needs a live Solr and was not run locally.

Documentation:

N/A

@sonarqubecloud

Copy link
Copy Markdown

@ViniTou
ViniTou merged commit b885548 into 6.0 Sep 24, 2026
21 of 22 checks passed
@ViniTou
ViniTou deleted the IBX-12046-symfony-deprecations-v2 branch September 24, 2026 08:01
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.

4 participants