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:
commit
6b682bfcc5
@ -45,7 +45,7 @@ class CsrfTokenBadge implements BadgeInterface
|
||||
return $this->csrfTokenId;
|
||||
}
|
||||
|
||||
public function getCsrfToken(): string
|
||||
public function getCsrfToken(): ?string
|
||||
{
|
||||
return $this->csrfToken;
|
||||
}
|
||||
|
Reference in New Issue
Block a user