Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 2 additions & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /