[PR #10849] Fix templated phpdoc return type #12657

Open
opened 2026-01-22 16:14:46 +01:00 by admin · 0 comments
Owner

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

State: closed
Merged: No


When split between @param and @psalm-param, only the @psalm-param is used by psalm/phpstan, ie class-string<T> is used instead of (too wide) class|class-string<T>.

In the 2nd commit, I fixed all other simillar problems in the whole repo. I used @.*(string.*\|class-s|class-string.*\|.*string) regex to find the lines to check/fix.

**Original Pull Request:** https://github.com/doctrine/orm/pull/10849 **State:** closed **Merged:** No --- When split between `@param` and `@psalm-param`, only the `@psalm-param` is used by psalm/phpstan, ie `class-string<T>` is used instead of (too wide) `class|class-string<T>`. In the 2nd commit, I fixed all other simillar problems in the whole repo. I used `@.*(string.*\|class-s|class-string.*\|.*string)` regex to find the lines to check/fix.
admin added the pull-request label 2026-01-22 16:14:46 +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#12657