Skip to content

Updates for SF 8#33

Open
javihgil wants to merge 2 commits into6.0from
updates-for-symfony8
Open

Updates for SF 8#33
javihgil wants to merge 2 commits into6.0from
updates-for-symfony8

Conversation

@javihgil
Copy link
Copy Markdown
Member

No description provided.

@javihgil javihgil requested a review from Copilot January 27, 2026 12:18
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the codebase for Symfony 8 compatibility, removing deprecated components and improving type safety. The changes include migrating from SensioFrameworkExtraBundle's ParamConverter to Symfony's ValueResolver, updating permission naming conventions, and applying modern PHP 8.4 type declarations.

Changes:

  • Removed deprecated SensioFrameworkExtraBundle dependencies and ParamConverter implementations
  • Updated permission constants from ROLE_* to PERMISSION_SFS_ACCOUNT_* prefix
  • Added return type declarations to anonymous functions and methods throughout the codebase

Reviewed changes

Copilot reviewed 26 out of 26 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
templates/admin/accounts/details.html.twig Updated permission constants to new naming convention
src/Security/Voter/DeprecatedPermissionVoter.php Removed deprecated voter class
src/Request/ParamConverter/ContentParamConverter.php Removed deprecated ParamConverter implementation
src/Security/Authorization/Voter/AccountAccessVoter.php Added return type hints and simplified conditional logic
src/Form/Admin/*.php Added return type declarations to choice_label closures
src/EventListener/*.php Improved type checking with instanceof and added return types
src/Entity/*.php Added return type declarations to map/filter closures and removed redundant constructor
src/Controller/*.php Enhanced response type checking with instanceof
rector.php Updated Rector configuration for PHP 8.4 and Symfony 8
composer.json Updated PHP requirement to 8.4 and Symfony dependencies to 8.0
config/services/*.yaml Updated permission constants in service configurations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.

2 participants