Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[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

Merged
merged 1 commit into from
Mar 4, 2019

Conversation

eborges78
Copy link

@eborges78 eborges78 commented Feb 27, 2019

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

@xabbuh
Copy link
Member

xabbuh commented Feb 27, 2019

We would also need to update the docblock of the ConfigurableRequirementsInterface where null is explicitly documented.

@eborges78 eborges78 changed the title [FrameworkBundle] fix #30306 [FrameworkBundle] Fix UrlGenerator::generate to return an empty string instead of null Feb 27, 2019
Copy link
Contributor

@HeahDude HeahDude left a comment

Choose a reason for hiding this comment

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

👍

@fabpot
Copy link
Member

fabpot commented Feb 28, 2019

This should be merged in 3.4 if we consider it as a bug fix.

@fabpot
Copy link
Member

fabpot commented Mar 4, 2019

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 eborges78 changed the base branch from 4.2 to master March 4, 2019 06:53
@fabpot
Copy link
Member

fabpot commented Mar 4, 2019

@eborges78 Can you rebase on current master instead of merging? Merge commits forbids us from merging the PR. Thank you.

@eborges78 eborges78 force-pushed the ticket_30306 branch 2 times, most recently from b6aa261 to b921200 Compare March 4, 2019 12:41
Copy link
Member

@nicolas-grekas nicolas-grekas left a 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

@fabpot
Copy link
Member

fabpot commented Mar 4, 2019

Thank you @eborges78.

@fabpot fabpot merged commit c5b1247 into symfony:master Mar 4, 2019
fabpot added a commit that referenced this pull request Mar 4, 2019
… 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
@fabpot fabpot mentioned this pull request May 9, 2019
AntoineRoue added a commit to AntoineRoue/symfony-docs that referenced this pull request Apr 6, 2021
Since symfony/symfony#30390, the documentation did not change.
AntoineRoue added a commit to AntoineRoue/symfony-docs that referenced this pull request Apr 6, 2021
This value was not changed with symfony/symfony#30390
wouterj pushed a commit to AntoineRoue/symfony-docs that referenced this pull request Apr 7, 2021
This value was not changed with symfony/symfony#30390
wouterj added a commit to symfony/symfony-docs that referenced this pull request Apr 7, 2021
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
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.

Controller::generateUrl() must be of the type string, null returned
7 participants