[PR #5885] Partially reverting #5860 due to type juggling horrors #9768

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

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

State: closed
Merged: Yes


See #5860

See this example on why the revert is needed: https://3v4l.org/8T34v

Code copied for reference:

<?php

$a = 1;

switch ($a) {
    case "1";
        echo "STUPID LANGUAGE!";
        break;
    case 1;
        echo __LINE__;
        break;
}
**Original Pull Request:** https://github.com/doctrine/orm/pull/5885 **State:** closed **Merged:** Yes --- See #5860 See this example on why the revert is needed: https://3v4l.org/8T34v Code copied for reference: ``` php <?php $a = 1; switch ($a) { case "1"; echo "STUPID LANGUAGE!"; break; case 1; echo __LINE__; break; } ```
admin added the pull-request label 2026-01-22 16:05:21 +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#9768