Skip to content

Rely on same template name than doctrine#744

Merged
VincentLanglet merged 1 commit intophpstan:2.0.xfrom
VincentLanglet:sameTemplate
May 5, 2026
Merged

Rely on same template name than doctrine#744
VincentLanglet merged 1 commit intophpstan:2.0.xfrom
VincentLanglet:sameTemplate

Conversation

@VincentLanglet VincentLanglet marked this pull request as ready for review May 5, 2026 18:34
@VincentLanglet VincentLanglet requested a review from staabm May 5, 2026 18:34
/**
* @template TEntityClass of object
* @implements ObjectRepository<TEntityClass>
* @template T of object
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

do we need to define a min-doctrine version (composer.json) in which this change is contained in ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Why ? Doctrine never used TEntityClass as template name ; they directly used T

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I see 👍

@VincentLanglet VincentLanglet merged commit fb8f874 into phpstan:2.0.x May 5, 2026
50 of 51 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.

2 participants