Skip to content

Commit f9faffb

Browse files
authored
Merge pull request #1309 from seb-jean/patch-1
Apply `get_class_to_class_keyword` PHP-CS-Fixer rule
2 parents b1e6940 + a7b2328 commit f9faffb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Resources/skeleton/doctrine/Repository.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function remove(<?= $entity_class_name ?> $entity, bool $flush = false):
4646
public function upgradePassword(<?= sprintf('%s ', $password_upgrade_user_interface->getShortName()); ?>$user, string $newHashedPassword): void
4747
{
4848
if (!$user instanceof <?= $entity_class_name ?>) {
49-
throw new UnsupportedUserException(sprintf('Instances of "%s" are not supported.', \get_class($user)));
49+
throw new UnsupportedUserException(sprintf('Instances of "%s" are not supported.', $user::class));
5050
}
5151

5252
$user->setPassword($newHashedPassword);

src/Resources/skeleton/security/UserProvider.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function loadUserByUsername($username): UserInterface
4646
public function refreshUser(UserInterface $user): UserInterface
4747
{
4848
if (!$user instanceof <?= $user_short_name ?>) {
49-
throw new UnsupportedUserException(sprintf('Invalid user class "%s".', get_class($user)));
49+
throw new UnsupportedUserException(sprintf('Invalid user class "%s".', $user::class));
5050
}
5151

5252
// Return a User object after making sure its data is "fresh".

0 commit comments

Comments
 (0)