Skip to content

Specify EntityRepository type in generated tests#1783

Merged
GromNaN merged 1 commit intosymfony:1.xfrom
tcoch:specify-var-type
Feb 12, 2026
Merged

Specify EntityRepository type in generated tests#1783
GromNaN merged 1 commit intosymfony:1.xfrom
tcoch:specify-var-type

Conversation

@tcoch
Copy link
Copy Markdown
Contributor

@tcoch tcoch commented Feb 12, 2026

This PR aims to resolve a PHPStan issue and provide more context for IDE. This will improve DX.

It resolves the following PHPStan issue:

  15     Property App\Tests\Controller\FooControllerTest::$fooRepository with generic class Doctrine\ORM\EntityRepository does not specify its types: T  
         🪪  missingType.generics

@GromNaN
Copy link
Copy Markdown
Member

GromNaN commented Feb 12, 2026

Thank you @tcoch.

@GromNaN GromNaN merged commit a26273a into symfony:1.x Feb 12, 2026
11 checks passed
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