Skip to content
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

Fix return statements #33130

Merged
merged 1 commit into from Aug 13, 2019
Merged

Fix return statements #33130

merged 1 commit into from Aug 13, 2019

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 3.4
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

Discovered while working on #30323
This will sync the code from 3.4 up to master, where adding return types will require these.

@@ -79,7 +79,7 @@ public function getUser()
}

if (!$token = $tokenStorage->getToken()) {
return;
return null;
Copy link
Member

Choose a reason for hiding this comment

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

docblock should say @return object|null, could you fix it btw?

@@ -446,12 +446,12 @@ protected function getUser()
}

if (null === $token = $this->container->get('security.token_storage')->getToken()) {
return;
return null;
Copy link
Member

Choose a reason for hiding this comment

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

same for the docblock

@nicolas-grekas nicolas-grekas merged commit 2bc05c8 into symfony:3.4 Aug 13, 2019
nicolas-grekas added a commit that referenced this pull request Aug 13, 2019
This PR was merged into the 3.4 branch.

Discussion
----------

Fix return statements

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Discovered while working on #30323
This will sync the code from 3.4 up to master, where adding return types will require these.

Commits
-------

2bc05c8 Fix return statements
@nicolas-grekas nicolas-grekas deleted the fix-ret branch August 23, 2019 11:45
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.

None yet

4 participants