File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -328,7 +328,7 @@ command will generate a nice skeleton to get you started::
328
328
*
329
329
* @return UserInterface
330
330
*/
331
- public function refreshUser(UserInterface $user)
331
+ public function refreshUser(UserInterface $user): UserInterface
332
332
{
333
333
if (!$user instanceof User) {
334
334
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::
342
342
/**
343
343
* Tells Symfony to use this provider for this User class.
344
344
*/
345
- public function supportsClass(string $class)
345
+ public function supportsClass(string $class): bool
346
346
{
347
347
return User::class === $class || is_subclass_of($class, User::class);
348
348
}
You can’t perform that action at this time.
0 commit comments