chore: migrate to OroCommerce 7.0 / Symfony 7 / PHP 8.5#15
Merged
Conversation
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.
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.