From 085006b07376aaec90ac4cfe478058b4974c4691 Mon Sep 17 00:00:00 2001 From: Jens True Date: Wed, 7 Feb 2024 11:05:54 +0000 Subject: [PATCH] Psalm warning. Investigate getting PHPunit plugin for Psalm. --- tests/Notification/NtfyTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/Notification/NtfyTest.php b/tests/Notification/NtfyTest.php index 729847d..51d310e 100644 --- a/tests/Notification/NtfyTest.php +++ b/tests/Notification/NtfyTest.php @@ -13,15 +13,15 @@ use PHPUnit\Framework\MockObject\MockObject; final class NtfyTest extends TestCase { + /** + * @psalm-suppress PropertyNotSetInConstructor + */ private Ntfy $instance; + /** + * @psalm-suppress PropertyNotSetInConstructor + */ private MockObject $client; - public function __construct($name) - { - parent::__construct($name); - $this->setUp(); - } - protected function setUp(): void { $this->client = $this->createMock(Client::class);