You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Two different enums joined by a ternary keep the first enum's names: Pure::cases() read back as Lvl cases. #567
Two different enums joined by a ternary keep the first enum's names: Pure::cases() read back as Lvl cases.
Repro
<?phpenum Lvl: string { case A = 'a'; case B = 'b'; }
enum Pure { case X; }
functionpick(bool$b): array { return$b ? Lvl::cases() : Pure::cases(); }
foreach (pick(true) as$c) { echo$c->name; }
foreach (pick(false) as$c) { echo$c->name; }
echo"\n";
Expected (php)
ABX
Actual (manticore e2f4385f, Darwin arm64)
ABA
Tracking
Known-bug repro: tests/aot/repro/wrong/enum_two_types_ternary_cases.php — bash tests/aot/xfail.sh -k enum_two_types_ternary_cases reports XFAIL while this is open and XPASS once it is fixed; then move the repro into tests/aot/cases/ and close this issue.
Activity
Repros for conditional class reflection file name (#566) and two-enum…
symfony/demo compiles and serves every page identically to php (#599)