Merged
Conversation
added 18 commits
January 7, 2026 17:12
Reviewer's GuideUpgrades the project to PHP 8.5 and Symfony 8.0, adjusts routing/validator post-create configuration to match new conventions, and updates CI images and related dependencies to the PHP 8.5 stack. Class diagram for updated PostCreateProject configuration methodsclassDiagram
class PostCreateProject {
-reconfigureAnnotations(Event event) void
-reconfigureValidator(Event event) void
}
Flow diagram for updated validator configuration insertionflowchart TD
A[Start_reconfigureValidator] --> B[Resolve_projectDir]
B --> C[Set_file_path_to_config_packages_validator_yaml]
C --> D[Read_file_into_lines_array]
D --> E[Initialize_newLines_array_and_added_flag_false]
E --> F{For_each_line_in_lines}
F --> G[Append_current_line_to_newLines]
G --> H{added_is_false_and_line_matches_^\s*validation:}
H --> I[Append_email_validation_mode_strict_line]
I --> J[Set_added_true]
H --> K[Continue_without_inserting]
J --> K
K --> L{More_lines?}
L --> F
L --> M[Write_newLines_back_to_validator_yaml]
M --> N[End_reconfigureValidator]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- The new
reconfigureAnnotationsimplementation now overwritesconfig/routes.yamlentirely with a hardcoded block, which will drop any existing custom routes or comments; consider updating only the relevantcontrollerssection or appending the locale config instead of replacing the whole file. - In
reconfigureValidator, the logic blindly injectsemail_validation_mode: strictafter the firstvalidation:match with fixed indentation and without checking for an existing key; it would be safer to detect and update an existingemail_validation_modeentry or compute indentation from surrounding lines to avoid duplicates or malformed YAML.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The new `reconfigureAnnotations` implementation now overwrites `config/routes.yaml` entirely with a hardcoded block, which will drop any existing custom routes or comments; consider updating only the relevant `controllers` section or appending the locale config instead of replacing the whole file.
- In `reconfigureValidator`, the logic blindly injects `email_validation_mode: strict` after the first `validation:` match with fixed indentation and without checking for an existing key; it would be safer to detect and update an existing `email_validation_mode` entry or compute indentation from surrounding lines to avoid duplicates or malformed YAML.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
tijsverkoyen
approved these changes
Jan 8, 2026
tijsverkoyen
approved these changes
Jan 8, 2026
jonasdekeukelaere
approved these changes
Jan 12, 2026
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.
upgrade to symfony 8.0 and php 8.5
Summary by Sourcery
Upgrade the project to PHP 8.5 and Symfony 8 while adjusting configuration and CI to match the new runtime.
Enhancements:
Build:
CI: