-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] Fix UrlGenerator::generate to return an empty string instead of null #30390
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
Conversation
We would also need to update the docblock of the |
src/Symfony/Component/Routing/Tests/Generator/UrlGeneratorTest.php
Outdated
Show resolved
Hide resolved
606729a
to
6471c00
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
This should be merged in 3.4 if we consider it as a bug fix. |
After thinking about it a bit more, I would rather merge it in master and add a note in the changelogs about the change. |
@eborges78 Can you rebase on current master instead of merging? Merge commits forbids us from merging the PR. Thank you. |
b6aa261
to
b921200
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, with minor comment
…g instead of null
Thank you @eborges78. |
… an empty string instead of null (Emmanuel BORGES) This PR was squashed before being merged into the 4.3-dev branch (closes #30390). Discussion ---------- [FrameworkBundle] Fix UrlGenerator::generate to return an empty string instead of null | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #30306 | License | MIT Fix #30306 : Controller::generateUrl() must be of the type string, null returned Commits ------- c5b1247 [FrameworkBundle] Fix UrlGenerator::generate to return an empty string instead of null
Since symfony/symfony#30390, the documentation did not change.
This value was not changed with symfony/symfony#30390
This value was not changed with symfony/symfony#30390
This PR was submitted for the 5.2 branch but it was merged into the 4.4 branch instead. Discussion ---------- Update framework.router.strict_requirements This value was not changed with symfony/symfony#30390 <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Commits ------- 90e6580 Update framework.rst
Fix #30306 : Controller::generateUrl() must be of the type string, null returned