-
Notifications
You must be signed in to change notification settings - Fork 12
Upgrade for Bolt 6 #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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 Article extension from version 5 to version 6, modernizing the codebase to use PHP 8.2+ features and updating dependencies.
Key Changes
- Modernized PHP syntax using constructor property promotion, readonly properties, PHP 8 attributes, and first-class callables
- Updated Symfony components from annotations to attributes for routing and security
- Added code quality tooling (PHPStan, Rector, ECS) with comprehensive configuration files
Reviewed Changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/TwigExtension.php | Modernized constructor with property promotion and updated TwigFunction syntax to use first-class callables |
| src/Extension.php | Added type hints for container parameters |
| src/Entity/ArticleField.php | Converted Doctrine annotations to attributes and added return type |
| src/Controller/Upload.php | Updated to use Symfony attributes, constructor promotion, removed unused dependencies, and modernized exception handling |
| src/Controller/Images.php | Similar modernization as Upload controller with attributes and constructor promotion |
| src/ArticleInjectorWidget.php | Updated to use Request constant and added PHPStan ignore comment |
| src/ArticleConfig.php | Extensive refactoring with constructor promotion, added type hints, improved null handling, and moved getExtension method |
| rector.php | New Rector configuration for automated refactoring |
| phpstan.dist.neon | New PHPStan configuration for static analysis |
| ecs.php | New Easy Coding Standard configuration replacing YAML format |
| easy-coding-standard.yml | Removed deprecated YAML configuration |
| config/services.yaml | Updated Doctrine mapping type from annotation to attribute |
| config/routes.yaml | Updated routing type from annotation to attribute |
| composer.json | Updated PHP requirement to 8.2+ and added dev dependencies for code quality tools |
| .github/workflows/code_analysis.yaml | New GitHub Actions workflow for automated code analysis |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
3b67f44 to
2445bae
Compare
No description provided.