Skip to content

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 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.

@bobvandevijver bobvandevijver merged commit 090fc1c into main Nov 13, 2025
10 checks passed
@bobvandevijver bobvandevijver deleted the 6.x-dev 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