mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #10229] Widen parameter type #12195
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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