Skip to content

Commit

Permalink
minor #32001 [Security] Fix AuthenticationException::getToken typehin…
Browse files Browse the repository at this point in the history
…t (norkunas)

This PR was merged into the 3.4 branch.

Discussion
----------

[Security] Fix AuthenticationException::getToken typehint

| Q             | A
| ------------- | ---
| Branch?       | 3.4 <!-- see below -->
| 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 -->

The token may be not set when throwing AuthenticationException.

<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.

Additionally (see https://symfony.com/roadmap):
 - Bug fixes must be submitted against the lowest maintained branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too).
 - Features and deprecations must be submitted against branch 4.4.
 - Legacy code removals go to the master branch.
-->

Commits
-------

a9705a0 Fix AuthenticationException::getToken typehint
  • Loading branch information
Robin Chalas committed Jun 19, 2019
2 parents df21019 + a9705a0 commit 8ad74a8
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -26,7 +26,7 @@ class AuthenticationException extends \RuntimeException implements \Serializable
/**
* Get the token.
*
* @return TokenInterface
* @return TokenInterface|null
*/
public function getToken()
{
Expand Down

0 comments on commit 8ad74a8

Please sign in to comment.