Skip to content

Commit 51f65a9

Browse files
Merge branch '4.4'
* 4.4: [Debug] Improve UPGRADE files remove wrongly added legacy group from test consistently throw NotSupportException [HttpKernel] Clarify error handler restoring process again [HttpClient] Remove CURLOPT_CONNECTTIMEOUT_MS curl opt add missing conflict rule [Intl] fix nullable phpdocs and useless method visibility of internal class remove some more useless phpdocs Resilience against file_get_contents() race conditions. Turned return type annotations of private methods into php return types.
2 parents 11af61c + 2807632 commit 51f65a9

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Encoder/EncoderFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function getEncoder($user)
6565
*
6666
* @throws \InvalidArgumentException
6767
*/
68-
private function createEncoder(array $config)
68+
private function createEncoder(array $config): PasswordEncoderInterface
6969
{
7070
if (isset($config['algorithm'])) {
7171
$config = $this->getEncoderConfigFromAlgorithm($config);

User/InMemoryUserProvider.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,9 @@ public function supportsClass(string $class)
9393
/**
9494
* Returns the user by given username.
9595
*
96-
* @return User
97-
*
9896
* @throws UsernameNotFoundException if user whose given username does not exist
9997
*/
100-
private function getUser(string $username)
98+
private function getUser(string $username): User
10199
{
102100
if (!isset($this->users[strtolower($username)])) {
103101
$ex = new UsernameNotFoundException(sprintf('Username "%s" does not exist.', $username));

0 commit comments

Comments
 (0)