Skip to content

Commit a4d1d0f

Browse files
committed
minor #18197 Patch 17 (hbgamra)
This PR was submitted for the 6.3 branch but it was merged into the 5.4 branch instead. Discussion ---------- Patch 17 <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- 2ea62fa Update user_providers.rst
2 parents 8ee4dc1 + 2ea62fa commit a4d1d0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

security/user_providers.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ command will generate a nice skeleton to get you started::
328328
*
329329
* @return UserInterface
330330
*/
331-
public function refreshUser(UserInterface $user)
331+
public function refreshUser(UserInterface $user): UserInterface
332332
{
333333
if (!$user instanceof User) {
334334
throw new UnsupportedUserException(sprintf('Invalid user class "%s".', get_class($user)));
@@ -342,7 +342,7 @@ command will generate a nice skeleton to get you started::
342342
/**
343343
* Tells Symfony to use this provider for this User class.
344344
*/
345-
public function supportsClass(string $class)
345+
public function supportsClass(string $class): bool
346346
{
347347
return User::class === $class || is_subclass_of($class, User::class);
348348
}

0 commit comments

Comments
 (0)