Skip to content

Commit f9a00b0

Browse files
committed
Removing bad use statement for Exception and also not setting the safeMessage if the constructor was probably empty
1 parent 556abe0 commit f9a00b0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Symfony/Component/Security/Core/Exception/SafeMessageAuthenticationException.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
*/
1111

1212
namespace Symfony\Component\Security\Core\Exception;
13-
use Exception;
1413

1514
/**
1615
* An authentication exception where you can control the message shown to the user
@@ -27,11 +26,15 @@ class SafeMessageAuthenticationException extends AuthenticationException
2726

2827
private $messageData = array();
2928

30-
public function __construct($message = "", array $messageData = array(), $code = 0, Exception $previous = null)
29+
public function __construct($message = '', array $messageData = array(), $code = 0, \Exception $previous = null)
3130
{
3231
parent::__construct($message, $code, $previous);
3332

34-
$this->setSafeMessage($message, $messageData);
33+
if ('' !== $message) {
34+
$this->messageKey = $message;
35+
}
36+
37+
$this->messageData = $messageData;
3538
}
3639

3740

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy