bug #36518 [Security] Fix missing nullable in CsrfTokenBadge (sstok)

This PR was merged into the 5.1-dev branch.

Discussion
----------

[Security] Fix missing nullable in CsrfTokenBadge

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        |

Related to #33558 I noticed a minor 🤏  bug with the method return-type.

Commits
-------

5cb633c0dd Update CsrfTokenBadge.php
This commit is contained in:
Robin Chalas 2020-04-21 18:49:50 +02:00
commit 6b682bfcc5

View File

@ -45,7 +45,7 @@ class CsrfTokenBadge implements BadgeInterface
return $this->csrfTokenId;
}
public function getCsrfToken(): string
public function getCsrfToken(): ?string
{
return $this->csrfToken;
}