From e3473402f56a7c9d89b8ec9666ea15fa5e217c67 Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Fri, 5 Jul 2024 12:05:26 +0200 Subject: [PATCH] [PHPStan][CS] Improved changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Paweł Niedzielski --- .../lib/MVC/Symfony/Security/User/BaseProviderTestCase.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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( [