Skip to content

Commit

Permalink
minor #32144 add missing return type in User class (Tobion)
Browse files Browse the repository at this point in the history
This PR was merged into the 5.0-dev branch.

Discussion
----------

add missing return type in User class

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | #...   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

Fixed a missing type in #31996 chasing #17201
Every method in this class had a return type but this method.

Commits
-------

7857f2f add missing return type in User class
  • Loading branch information
Robin Chalas committed Jun 25, 2019
2 parents 18793b7 + 7857f2f commit d2711bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Symfony/Component/Security/Core/User/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ public function getPassword(): ?string
/**
* {@inheritdoc}
*/
public function getSalt()
public function getSalt(): ?string
{
return null;
}

/**
Expand Down

0 comments on commit d2711bf

Please sign in to comment.