[PR #8836] Make implicit type casts explicit #11200

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

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

State: closed
Merged: Yes


Before we discuss what target branch the strict_types PR should use, here is a PR that makes 2.10.x compatible with strict types.
Everything was pretty straightforward except the sequence generator which is full of casts from int to string and vice versa. After reading https://github.com/doctrine/orm/pull/6683 , it seems to me that we want to be compatible with sequences greater than PHP_INT_MAX, but I doubt we are in practice.
Note how this reduces the baseline.

**Original Pull Request:** https://github.com/doctrine/orm/pull/8836 **State:** closed **Merged:** Yes --- Before we discuss what target branch the `strict_types` PR should use, here is a PR that makes 2.10.x compatible with strict types. Everything was pretty straightforward except the sequence generator which is full of casts from int to string and _vice versa_. After reading https://github.com/doctrine/orm/pull/6683 , it seems to me that we want to be compatible with sequences greater than PHP_INT_MAX, but I doubt we are in practice. Note how this reduces the baseline.
admin added the pull-request label 2026-01-22 16:10:01 +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#11200