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 @@ -314,7 +314,7 @@ command will generate a nice skeleton to get you started::
314
314
*
315
315
* @return UserInterface
316
316
*/
317
- public function refreshUser(UserInterface $user)
317
+ public function refreshUser(UserInterface $user): UserInterface
318
318
{
319
319
if (!$user instanceof User) {
320
320
throw new UnsupportedUserException(sprintf('Invalid user class "%s".', get_class($user)));
@@ -328,7 +328,7 @@ command will generate a nice skeleton to get you started::
328
328
/**
329
329
* Tells Symfony to use this provider for this User class.
330
330
*/
331
- public function supportsClass(string $class)
331
+ public function supportsClass(string $class): bool
332
332
{
333
333
return User::class === $class || is_subclass_of($class, User::class);
334
334
}
You can’t perform that action at this time.
0 commit comments