Skip to content

Put backed enum from()/tryFrom() parameter type behind bleeding edge - #6795

Merged
ondrejmirtes merged 1 commit into
2.3.xfrom
backed-enum-from-bleeding-edge
Oct 23, 2026
Merged

ondrejmirtes merged 1 commit into
2.3.xfrom
backed-enum-from-bleeding-edge

Conversation

@ondrejmirtes

Copy link
Copy Markdown
Member

Follow-up to #6790. The backing-type parameter of BackedEnum::from() / tryFrom() (BackedEnumFromMethodReflection) is now enabled only by the new featureToggles.backedEnumFromParameterType toggle (on in bleedingEdge).

  • PhpClassReflectionExtension returns BackedEnumFromMethodReflection only when the toggle is on; the turbo-ext C++ mirror reads the same constructor parameter.
  • The tests from enum::from() takes BackedEnum types into account #6790 keep covering the toggle-on path (they run with bleedingEdge); BackedEnumFromParameterTypeToggleOffTest covers the toggle-off path, and the turbo differential test compares both sides with the toggle off.

🤖 Generated with Claude Code

https://claude.ai/code/session_01QK2T35CUpbLV52qZNgoGai

The backing-type parameter of BackedEnum::from() and tryFrom() is now
enabled by the backedEnumFromParameterType feature toggle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QK2T35CUpbLV52qZNgoGai
@ondrejmirtes
ondrejmirtes force-pushed the backed-enum-from-bleeding-edge branch from 8173f9b to 329b3d9 Compare October 23, 2026 20:06
@ondrejmirtes
ondrejmirtes merged commit 014269c into 2.3.x Oct 23, 2026
452 of 453 checks passed
@ondrejmirtes
ondrejmirtes deleted the backed-enum-from-bleeding-edge branch October 23, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant