[PR #10229] Widen parameter type #12195

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

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

State: closed
Merged: Yes


This exception is used in two places, one where $generatedMode is clearly a string, and another where typing it as a string will cause a type error, because $generatedMode is supposed to be an int there.

Supposed to be an int: 465c02fe68/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php (L1720-L1728)

Supposed to be a string: 465c02fe68/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php (L680-L682)

@mehldau this was introduced in https://github.com/doctrine/orm/pull/9118, please review

**Original Pull Request:** https://github.com/doctrine/orm/pull/10229 **State:** closed **Merged:** Yes --- This exception is used in two places, one where $generatedMode is clearly a string, and another where typing it as a string will cause a type error, because $generatedMode is supposed to be an int there. Supposed to be an int: https://github.com/doctrine/orm/blob/465c02fe68d683efd32a314417940629c54374c4/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php#L1720-L1728 Supposed to be a string: https://github.com/doctrine/orm/blob/465c02fe68d683efd32a314417940629c54374c4/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php#L680-L682 @mehldau this was introduced in https://github.com/doctrine/orm/pull/9118, please review
admin added the pull-request label 2026-01-22 16:13:14 +01:00
admin closed this issue 2026-01-22 16:13:15 +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#12195