Skip to content

Conversation

@GromNaN
Copy link
Member

@GromNaN GromNaN commented Jan 8, 2026

No description provided.

@GromNaN GromNaN requested a review from Copilot January 8, 2026 15:12
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 pull request upgrades PHPStan from version 1.x to version 2.x, updating the main package and all related extensions to their latest major versions.

Key Changes:

  • Upgraded PHPStan core and extension packages to v2
  • Updated PHPStan suppression comments to use the new v2 syntax format
  • Removed named parameters from test assertions to comply with PHPStan v2 requirements

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tools/phpstan/composer.json Updated PHPStan and all extension packages to v2
tests/Maker/MakeSerializerEncoderTest.php Removed named parameters from assertions
tests/Maker/MakeControllerTest.php Removed named parameters from assertions
tests/Command/MakerCommandTest.php Updated PHPStan suppression comment to v2 syntax
src/Maker/MakeUser.php Updated PHPStan suppression comment to v2 syntax
src/Maker/MakeStimulusController.php Updated PHPStan suppression comment to v2 syntax
src/Maker/MakeResetPassword.php Updated PHPStan suppression comment to v2 syntax
CONTRIBUTING.md Added new contributing documentation with testing and static analysis instructions

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

public function configureDependencies(DependencyBuilder $dependencies): void
{
// lower than 8.1, allow WebpackEncoreBundle
// @phpstan-ignore smaller.alwaysFalse
Copy link
Member

Choose a reason for hiding this comment

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

phpstan is actually right. This is dead code due to the PHP requirement in composer.json.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point, I removed the dependency on webpack encore.

@GromNaN GromNaN merged commit 08192e1 into symfony:1.x Jan 9, 2026
@GromNaN GromNaN deleted the phpstan-v2 branch January 9, 2026 14:45
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