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

[ExpressionLanguage] Fix dumping of null safe operator#61076

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

Conversation

@ivantsepp
Copy link
Contributor

QA
Branch?6.4
Bug fix?yes
New feature?no
Deprecations?no
Issuesn/a
LicenseMIT

I noticed that when you dump an expression that uses null safe operator, the returned string doesn't maintain the null safe operator.

> (newExpressionLanguage())->parse('user?.foo', ['user'])->getNodes()->dump()="user.foo"

I would have expecteduser?.foo to be returned instead.

(I've also fixed some test data providers cases -getDumpData provider should only generate cases with 2 elements but some tests are including a third argument. So I went ahead and removed them)

@fabpot
Copy link
Member

Thank you@ivantsepp.

ivantsepp reacted with heart emoji

@fabpotfabpot merged commit8460cc9 intosymfony:6.4Jul 10, 2025
9 of 11 checks passed
This was referencedJul 31, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@stofstofstof approved these changes

@SpomkySpomkySpomky approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

6.4

Development

Successfully merging this pull request may close these issues.

5 participants

@ivantsepp@fabpot@stof@Spomky@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp