🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@yoeunes
Copy link
Contributor

@yoeunes yoeunes commented Nov 21, 2025

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues -
License MIT

When using MethodMarkingStore with an uninitialized typed property defined in a parent class, getMarking() crashes.

This happens because PHP's internal error message references the declaring class (Parent), but the current code compares it against get_debug_type($subject) which returns the instance class (Child).

This PR relaxes the exception message validation to ignore the class name. It now checks if the message starts with Typed property and ends with the expected uninitialized property suffix.

@yoeunes yoeunes requested a review from lyrixx as a code owner November 21, 2025 04:51
@carsonbot carsonbot added this to the 6.4 milestone Nov 21, 2025
@OskarStark OskarStark changed the title [Workflow] Fix MethodMarkingStore crash with inherited uninitialized properties [Workflow] Fix MethodMarkingStore crash with inherited uninitialized properties Nov 21, 2025
Copy link
Member

@lyrixx lyrixx left a comment

Choose a reason for hiding this comment

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

Thanks 👍🏼

@nicolas-grekas
Copy link
Member

Thank you @yoeunes.

@nicolas-grekas nicolas-grekas merged commit 11ce314 into symfony:6.4 Nov 21, 2025
11 checks passed
This was referenced Nov 21, 2025
This was referenced Dec 7, 2025
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.

4 participants