Skip to content

Commit ed0c4e5

Browse files
minor #33154 Parameter type leftovers (derrabus)
This PR was merged into the 5.0-dev branch. Discussion ---------- Parameter type leftovers | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #32179 | License | MIT | Doc PR | N/A Commits ------- 34eda04866 Added more parameter type declarations.
2 parents 90e7f32 + 96dc1c0 commit ed0c4e5

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Exception/CustomUserMessageAuthenticationException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function __construct(string $message = '', array $messageData = [], int $
3939
* @param string $messageKey The message or message key
4040
* @param array $messageData Data to be passed into the translator
4141
*/
42-
public function setSafeMessage($messageKey, array $messageData = [])
42+
public function setSafeMessage(string $messageKey, array $messageData = [])
4343
{
4444
$this->messageKey = $messageKey;
4545
$this->messageData = $messageData;

Exception/UsernameNotFoundException.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,8 @@ public function getUsername()
4141

4242
/**
4343
* Set the username.
44-
*
45-
* @param string $username
4644
*/
47-
public function setUsername($username)
45+
public function setUsername(string $username)
4846
{
4947
$this->username = $username;
5048
}

0 commit comments

Comments
 (0)