[PR #8769] Make templating Psalm-specific #11159

Closed
opened 2026-01-22 16:09:55 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/8769

State: closed
Merged: Yes


If $className is a class-string, then we return an instance of that
class. However, if it's an alias, things get complicated, and it's hard
to tell. There does not seem to be a way to express that for now.

We should probably consider dropping namespace aliases entirely and add
support for ::class inside DQL if it's not the case already.

Refs #8767 , https://github.com/phpstan/phpstan/issues/5175 , cc @VincentLanglet

**Original Pull Request:** https://github.com/doctrine/orm/pull/8769 **State:** closed **Merged:** Yes --- If `$className` is a class-string, then we return an instance of that class. However, if it's an alias, things get complicated, and it's hard to tell. There does not seem to be a way to express that for now. We should probably consider dropping namespace aliases entirely and add support for `::class` inside DQL if it's not the case already. Refs #8767 , https://github.com/phpstan/phpstan/issues/5175 , cc @VincentLanglet
admin added the pull-request label 2026-01-22 16:09:55 +01:00
admin closed this issue 2026-01-22 16:09:55 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#11159