Skip to content

Upgrade for Bolt 6#39

Merged
bobvandevijver merged 15 commits intomainfrom
dev-6.x
Nov 13, 2025
Merged

Upgrade for Bolt 6#39
bobvandevijver merged 15 commits intomainfrom
dev-6.x

Conversation

@bobvandevijver
Copy link
Member

No description provided.

Copy link

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 upgrades the Bolt Redactor extension to be compatible with Bolt 6, modernizing the codebase to use PHP 8.2+ features and updating dependencies.

  • Modernized PHP code using constructor property promotion, readonly properties, and PHP 8+ syntax
  • Updated Symfony dependencies (Security component namespace, attribute-based routing and security)
  • Added static analysis tools (PHPStan, Rector, ECS) with configuration files

Reviewed Changes

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

Show a summary per file
File Description
composer.json Updated PHP requirement to 8.2+, Bolt Core to 6.0, and added development tools
src/TwigExtension.php Modernized constructor with property promotion and replaced container dependency with direct parameters
src/RedactorInjectorWidget.php Updated to use Request::METHOD_GET constant
src/RedactorConfig.php Applied constructor property promotion, added type hints, and improved null safety
src/Extension.php Added type annotations for container parameters
src/Entity/RedactorField.php Converted from annotation to attribute syntax and added return type
src/Controller/Upload.php Modernized with attributes, property promotion, and updated method signatures
src/Controller/Images.php Applied similar modernization patterns and added PHPDoc type hints
config/services.yaml Updated Doctrine mapping type from annotation to attribute
rector.php Added Rector configuration for code modernization
phpstan.dist.neon Added PHPStan configuration for static analysis
ecs.php Added new ECS configuration replacing old YAML config
easy-coding-standard.yml Removed old YAML configuration file
.github/workflows/code_analysis.yaml Added CI workflow for code quality checks

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

@bobvandevijver bobvandevijver force-pushed the dev-6.x branch 3 times, most recently from 357eed4 to 86cf480 Compare November 12, 2025 21:28
@bobvandevijver bobvandevijver merged commit 82d9eaa into main Nov 13, 2025
10 checks passed
@bobvandevijver bobvandevijver deleted the dev-6.x branch November 13, 2025 20:00
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