Skip to content

Commit 4243db4

Browse files
Use interface_exists
1 parent d879c1a commit 4243db4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/PasswordAuthenticatedUserStubFilesExtension.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
namespace PHPStan\Symfony;
44

55
use PHPStan\PhpDoc\StubFilesExtension;
6-
use function class_exists;
6+
use function interface_exists;
77

88
class PasswordAuthenticatedUserStubFilesExtension implements StubFilesExtension
99
{
1010

1111
public function getFiles(): array
1212
{
13-
if (!class_exists('Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface')) {
13+
if (!interface_exists('Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface')) {
1414
return [];
1515
}
1616

0 commit comments

Comments
 (0)