From 350edf398c55b472e19a3017de9b4d2d3420b9e4 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 10 Apr 2024 15:33:43 +0200 Subject: PHP 8.3 #[\Override] (#6273) * PHP 8.3 #[\Override] https://php.watch/versions/8.3/override-attr With PHPStan `checkMissingOverrideMethodAttribute` https://phpstan.org/config-reference#checkmissingoverridemethodattribute And modified the call to phpstan-next on the model of https://github.com/FreshRSS/Extensions/pull/228 (more robust than the find method, which gave some strange errors) * Update extension example accordingly --- tests/app/Models/LogDAOTest.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/app/Models/LogDAOTest.php') diff --git a/tests/app/Models/LogDAOTest.php b/tests/app/Models/LogDAOTest.php index 4d9ec0e7d..90261ae55 100644 --- a/tests/app/Models/LogDAOTest.php +++ b/tests/app/Models/LogDAOTest.php @@ -10,6 +10,7 @@ class LogDAOTest extends TestCase { private string $logPath; + #[\Override] protected function setUp(): void { $this->logDAO = new FreshRSS_LogDAO(); $this->logPath = FreshRSS_LogDAO::logPath(self::LOG_FILE_TEST); @@ -36,6 +37,7 @@ class LogDAOTest extends TestCase { self::assertStringContainsString('', file_get_contents($this->logPath) ?: ''); } + #[\Override] protected function tearDown(): void { unlink($this->logPath); } -- cgit v1.2.3