Skip to content

Conversation

@COil
Copy link
Member

@COil COil commented Jan 17, 2026

Q A
Branch? main
Cleanup? yes
Bug fix? no
New feature? yes
Doc added? no
Tests pass? yes
Deprecations? no
License MIT

@COil COil self-assigned this Jan 17, 2026
Copilot AI review requested due to automatic review settings January 17, 2026 20:29
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 backports Psalm static analysis fixes from another repository to improve type safety and code quality. The changes focus on adding type hints, interface implementation annotations, and class finalization to help static analysis tools better understand the codebase.

Changes:

  • Added #[\Override] attributes to methods implementing parent class/interface methods
  • Added PHPDoc type hints for better static analysis in test files and controllers
  • Made User and UserRepository classes final to prevent unintended inheritance

Reviewed changes

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

Show a summary per file
File Description
tests/Integration/Twig/Extension/RoutingExtensionTest.php Added type hint for RoutingExtension variable
tests/Integration/Entity/UserTest.php Added type hint for EntityManagerInterface variable
src/Twig/Extension/EnvExtension.php Added Override attribute to getGlobals method
src/Story/AppStory.php Added Override attribute to build method
src/Repository/UserRepository.php Made class final
src/Form/Type/RegisterForm.php Added Override attributes to buildForm and configureOptions methods
src/Factory/UserFactory.php Added Override attributes to class and defaults methods
src/Entity/User.php Made class final and added Override attributes to interface methods
src/Controller/FormAction.php Added type hint for RegisterFormDto variable

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

@COil COil added chore chore or cleanup DX Developer Experience labels Jan 17, 2026
@COil COil force-pushed the chore/backport-psalm-fixes branch from 85ece05 to 0ca7dd1 Compare January 17, 2026 20:51
@COil COil requested a review from Copilot January 17, 2026 20:52
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

Copilot reviewed 9 out of 10 changed files in this pull request and generated no new comments.


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

@COil COil merged commit b1fa8e1 into main Jan 17, 2026
4 checks passed
@COil COil deleted the chore/backport-psalm-fixes branch January 17, 2026 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore chore or cleanup DX Developer Experience

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants