From 5722eaadea5375374e44a05678536a2c617e416a Mon Sep 17 00:00:00 2001 From: vdmorozov Date: Wed, 11 Dec 2024 19:07:29 +0500 Subject: [PATCH] fix: suppress irrelevant psalm inspection in tests Signed-off-by: vdmorozov --- test/Proxy/LazyServiceFactoryTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/test/Proxy/LazyServiceFactoryTest.php b/test/Proxy/LazyServiceFactoryTest.php index 7553285e..19566b2e 100644 --- a/test/Proxy/LazyServiceFactoryTest.php +++ b/test/Proxy/LazyServiceFactoryTest.php @@ -114,6 +114,7 @@ public function testDoesNotResetInitializerWhenCallbackThrowsException(): void ->expects(self::once()) ->method('createProxy') ->willReturnCallback( + /** @psalm-suppress UnusedVariable */ static function (string $className, callable $initializer) use ($expectedService, $proxy): MockObject { $wrappedInstance = null; $initializer($wrappedInstance, $proxy);