Skip to content

chore: migrate to OroCommerce 7.0 / Symfony 7 / PHP 8.5#15

Merged
S-Tian86 merged 1 commit into
synolia:masterfrom
S-Tian86:feature/oro-7.0
Jun 3, 2026
Merged

chore: migrate to OroCommerce 7.0 / Symfony 7 / PHP 8.5#15
S-Tian86 merged 1 commit into
synolia:masterfrom
S-Tian86:feature/oro-7.0

Conversation

@S-Tian86

@S-Tian86 S-Tian86 commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

SensioFrameworkExtraBundle is gone in Symfony 7. The backend controller now uses Symfony\Bridge\Twig\Attribute\Template (matching Oro's own backend controller pattern). The frontend controller keeps $this->render() for its partial/AJAX template and #[Layout] for the full-page action, both matching Oro's frontend patterns.

Routing resources must declare type:attribute (annotation loader removed in Symfony 6+). Route attributes already migrated to Symfony\Component\ Routing\Attribute\Route. Sensio ParamConverter replaced by Symfony Bridge MapEntity.

Dev dependencies updated for Symfony 7 compatibility: grumphp ^1.15 requires symfony/yaml ~5.x||~6.x which conflicts with oro/platform 7.0 (symfony/yaml ~7.4); bumped to ^2.10. phpspec dropped — no specs exist and the package does not support PHP 8.5. phpstan bumped to ^2.0.

phpstan 2.x is stricter with PHPDoc: @SuppressWarnings(PHPMD.*) annotations are parsed as PHPDoc and fail validation. Suppressed via identifier in phpstan.neon since these are PHPMD-only annotations. treatPhpDocTypesAsCertain set to false to silence instanceof checks against PHPDoc-typed variables.

SensioFrameworkExtraBundle is gone in Symfony 7. The backend controller
now uses Symfony\Bridge\Twig\Attribute\Template (matching Oro's own
backend controller pattern). The frontend controller keeps $this->render()
for its partial/AJAX template and #[Layout] for the full-page action,
both matching Oro's frontend patterns.

Routing resources must declare type:attribute (annotation loader removed
in Symfony 6+). Route attributes already migrated to Symfony\Component\
Routing\Attribute\Route. Sensio ParamConverter replaced by Symfony Bridge
MapEntity.

Dev dependencies updated for Symfony 7 compatibility: grumphp ^1.15
requires symfony/yaml ~5.x||~6.x which conflicts with oro/platform 7.0
(symfony/yaml ~7.4); bumped to ^2.10. phpspec dropped — no specs exist
and the package does not support PHP 8.5. phpstan bumped to ^2.0.

phpstan 2.x is stricter with PHPDoc: @SuppressWarnings(PHPMD.*) annotations
are parsed as PHPDoc and fail validation. Suppressed via identifier in
phpstan.neon since these are PHPMD-only annotations. treatPhpDocTypesAsCertain
set to false to silence instanceof checks against PHPDoc-typed variables.
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@S-Tian86 S-Tian86 self-assigned this Jun 3, 2026
@S-Tian86 S-Tian86 merged commit 968f7ad into synolia:master Jun 3, 2026
0 of 2 checks passed
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.

3 participants