Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4145222

Browse filesBrowse files
bug #44259 [Security] AccountStatusException::$user should be nullable (Cantepie)
This PR was submitted for the 6.0 branch but it was merged into the 4.4 branch instead. Discussion ---------- [Security] AccountStatusException::$user should be nullable | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | This PR fix error when throw an excepion extending `AccountStatusException` (`CustomUserMessageAccountStatusException` for example) ```php Error: Typed property Symfony\Component\Security\Core\Exception\AccountStatusException::$user must not be accessed before initialization ``` Commits ------- a0f5069 Initialize Symfony\Component\Security\Core\Exception\AccountStatusException:: property
2 parents 224712b + a0f5069 commit 4145222
Copy full SHA for 4145222

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/Security/Core/Exception/AccountStatusException.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/Exception/AccountStatusException.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ abstract class AccountStatusException extends AuthenticationException
2727
/**
2828
* Get the user.
2929
*
30-
* @return UserInterface
30+
* @return UserInterface|null
3131
*/
3232
public function getUser()
3333
{

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.