Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[VarExporter] dump default value for property hooks if present#60288

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:6.4fromxabbuh:pr-60258
May 2, 2025

Conversation

xabbuh
Copy link
Member

QA
Branch?6.4
Bug fix?yes
New feature?no
Deprecations?no
Issues
LicenseMIT

The test added in#60258 reveals that we have another bug in our lazy ghost generation logic which leads to an error at runtime when a hook tries to read the property's default value.

@carsonbotcarsonbot added this to the6.4 milestoneApr 27, 2025
@carsonbotcarsonbot changed the title[VarExporter] dump default value for property hooks if present[VarExporter] dump default value for property hooks if presentApr 27, 2025
@fabpot
Copy link
Member

Thank you@xabbuh.

@fabpotfabpot merged commitb5b27a8 intosymfony:6.4May 2, 2025
11 checks passed
@xabbuhxabbuh deleted the pr-60258 branchMay 2, 2025 08:38
This was referencedMay 2, 2025
nicolas-grekas added a commit that referenced this pull requestMay 14, 2025
…with property hooks (cheack)This PR was submitted for the 7.3 branch but it was merged into the 6.4 branch instead.Discussion----------[VarExporter] Fixed lazy-loading ghost objects generation with property hooks| Q             | A| ------------- | ---| Branch?       | 6.4| Bug fix?      | yes| New feature?  | no| Deprecations? | no| License       | MITFixed the bug introduced in#60288.If the type is boolean:```phppublic bool $property = false {    set {       ...    }}```an empty string is exported:```phppublic bool $property =  {    ...}```which leads to `ParseError: syntax error, unexpected token "{"` error.Commits-------0c71a93 Fixed lazy-loading ghost objects generation with property hooks with default values.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@fabpotfabpotfabpot approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
6.4
Development

Successfully merging this pull request may close these issues.

3 participants
@xabbuh@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp