Skip to content

Commit 47f5864

Browse files
committed
Use class_exists() instead of interface_exists() for the 'class'
1 parent f392fc1 commit 47f5864

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Maker/MakeResetPassword.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
247247
? 'ResetPasswordExceptionInterface::MESSAGE_PROBLEM_HANDLE'
248248
: "'There was a problem handling your password reset request'";
249249

250-
if ($isTranslatorAvailable = interface_exists(Translator::class)) {
250+
if ($isTranslatorAvailable = class_exists(Translator::class)) {
251251
$useStatements[] = TranslatorInterface::class;
252252
}
253253

0 commit comments

Comments
 (0)