[PR #10796] Narrow integer to param class constants #12626

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

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

State: closed
Merged: No


You cannot just pass any integer as a type, it has to map to something meaningful.

The psalm types introduced here are copied from doctrine/dbal 4, with a small difference: since we are not dealing with actual enums yet, but with class constants, we add ::*, which is compatible with both cases (class or enum).

**Original Pull Request:** https://github.com/doctrine/orm/pull/10796 **State:** closed **Merged:** No --- You cannot just pass any integer as a type, it has to map to something meaningful. The psalm types introduced here are copied from `doctrine/dbal` 4, with a small difference: since we are not dealing with actual enums yet, but with class constants, we add `::*`, which is compatible with both cases (class or enum).
admin added the pull-request label 2026-01-22 16:14:39 +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#12626