Skip to content

Handle new initializer and enum intiliazing as default value for promoted properties more gracefully - #1006

Merged
Ocramius merged 1 commit into
Roave:8.23.xfrom
DanielBadura:fix-promoted-property-new-n-enum
Sep 30, 2026
Merged

Ocramius merged 1 commit into
Roave:8.23.xfrom
DanielBadura:fix-promoted-property-new-n-enum

Conversation

@DanielBadura

@DanielBadura DanielBadura commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Fix promoted property with object-like default value (Enum::value, or new Foo())

Ref: #700 which already fixed it for method parameters.
Also, probably caused by this change in BetterReflection: Roave/BetterReflection#1555

See also our CI run(s): https://github.com/patchlevel/event-sourcing/actions/runs/36713468090/job/109880578447?pr=908

…o())

Ref: Roave#700 which already fixed it for method parameters.

Also, probably caused by this change in BetterReflection: Roave/BetterReflection#1555

@Ocramius Ocramius left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @DanielBadura!

@Ocramius Ocramius added this to the 8.23.0 milestone Sep 30, 2026
@Ocramius Ocramius self-assigned this Sep 30, 2026
@Ocramius
Ocramius merged commit f7573e3 into Roave:8.23.x Sep 30, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants