diff --git a/tests/lib/MVC/Symfony/Security/User/BaseProviderTestCase.php b/tests/lib/MVC/Symfony/Security/User/BaseProviderTestCase.php index 7d6b541565..3cada1549e 100644 --- a/tests/lib/MVC/Symfony/Security/User/BaseProviderTestCase.php +++ b/tests/lib/MVC/Symfony/Security/User/BaseProviderTestCase.php @@ -49,7 +49,7 @@ protected function setUp(): void } /** - * @phpstan-return list + * @phpstan-return list, bool}> */ public function supportsClassProvider(): array { @@ -63,7 +63,7 @@ public function supportsClassProvider(): array /** * @dataProvider supportsClassProvider * - * @phpstan-param class-string $class + * @phpstan-param class-string<\Symfony\Component\Security\Core\User\UserInterface> $class */ public function testSupportsClass(string $class, bool $supports): void { @@ -178,7 +178,7 @@ public function testLoadUserByUsernameUserNotFound(): void $this->userProvider->loadUserByIdentifier($username); } - protected function buildUserValueObjectStub(int $userId): User + final protected function buildUserValueObjectStub(int $userId): User { return new User( [