Psalm annotation is missing allowed ENUM values #7086

Open
opened 2026-01-22 15:44:23 +01:00 by admin · 0 comments
Owner

Originally created by @kevinpapst on GitHub (Dec 31, 2022).

Bug Report

Hey @derrabus, in your recent commit you added Psalm annotations:

99a37d864e/lib/Doctrine/ORM/Mapping/GeneratedValue.php (L18-L30)

Problem: TABLE and UUID are missing from the psalm annotation, while they are allowed in the ENUM.

My build is breaking, because I use UUID and phpstan now reports

  26     Parameter $strategy of attribute class                       
         Doctrine\ORM\Mapping\GeneratedValue constructor expects      
         'AUTO'|'CUSTOM'|'IDENTITY'|'NONE'|'SEQUENCE', 'UUID' given.  

... I can send a PR, just want to make sure that this was not on purpose, was it?

Originally created by @kevinpapst on GitHub (Dec 31, 2022). ### Bug Report Hey @derrabus, in your [recent commit](https://github.com/doctrine/orm/commit/1ad936a448e6841ee5bff988b2ab6fc0fd23e1d6#diff-4ee19c1ed755d34366c23e69ad18cca0ce4bf00228061d2854ccdbc59fb5835aR28) you added Psalm annotations: https://github.com/doctrine/orm/blob/99a37d864ed810c8bebe46ce36d40adde8b8b1ec/lib/Doctrine/ORM/Mapping/GeneratedValue.php#L18-L30 Problem: `TABLE` and `UUID` are missing from the psalm annotation, while they are allowed in the ENUM. My build is breaking, because I use `UUID` and phpstan now reports ``` 26 Parameter $strategy of attribute class Doctrine\ORM\Mapping\GeneratedValue constructor expects 'AUTO'|'CUSTOM'|'IDENTITY'|'NONE'|'SEQUENCE', 'UUID' given. ``` ... I can send a PR, just want to make sure that this was not on purpose, was it?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#7086