Skip to content

[Routing] Fix inline default null #60532

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 25, 2025

Conversation

HypeMC
Copy link
Member

@HypeMC HypeMC commented May 24, 2025

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

PR #59904 broke setting null as the default route param value using inline syntax. Instead of null, an empty string is set as the default. The tests didn't catch it because $this->assertEquals(null, '') is true.

@HypeMC HypeMC force-pushed the fix-route-inline-default branch from 7e4f699 to d775dde Compare May 24, 2025 20:43
@nicolas-grekas
Copy link
Member

Thank you @HypeMC.

@nicolas-grekas nicolas-grekas merged commit 15cbc27 into symfony:7.3 May 25, 2025
11 checks passed
@HypeMC HypeMC deleted the fix-route-inline-default branch May 25, 2025 10:38
@fabpot fabpot mentioned this pull request May 25, 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.

3 participants