From 09956fa37fad85bb219b7a6f8e52a0fdd402c9a2 Mon Sep 17 00:00:00 2001 From: Hannes Bochmann Date: Thu, 29 Feb 2024 09:44:43 +0100 Subject: [PATCH] Cleanup fix cs --- Classes/Backend/Model/DevlogEntry.php | 2 +- Tests/Classes/BaseTestCase.php | 2 +- Tests/Classes/Logger/GelfLoggerTest.php | 2 +- Tests/Classes/WatchDog/SchedulerWatchDogTest.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Classes/Backend/Model/DevlogEntry.php b/Classes/Backend/Model/DevlogEntry.php index fe38809..2f329d2 100644 --- a/Classes/Backend/Model/DevlogEntry.php +++ b/Classes/Backend/Model/DevlogEntry.php @@ -45,7 +45,7 @@ class DevlogEntry extends \DMK\Mklog\Domain\Model\DevlogEntry implements \Sys25\ * * @TODO: legacy rn_base make instance model support, remove if rn_base isn't used anymore */ - public function __construct(array $record = null) + public function __construct(?array $record = null) { if (null !== $record && is_array($record)) { foreach ($record as $columnName => $value) { diff --git a/Tests/Classes/BaseTestCase.php b/Tests/Classes/BaseTestCase.php index 3b0237c..8bcc5c7 100644 --- a/Tests/Classes/BaseTestCase.php +++ b/Tests/Classes/BaseTestCase.php @@ -128,7 +128,7 @@ protected function getDatabaseConnection() /** * Returns a devlog entry model mock. * - * @return \PHPUnit_Framework_MockObject_MockObject|\DMK\Mklog\Domain\Model\DevlogEntry + * @return \PHPUnit_Framework_MockObject_MockObject|DevlogEntry */ protected function getDevlogEntry() { diff --git a/Tests/Classes/Logger/GelfLoggerTest.php b/Tests/Classes/Logger/GelfLoggerTest.php index 8f6bf61..f7e18d3 100644 --- a/Tests/Classes/Logger/GelfLoggerTest.php +++ b/Tests/Classes/Logger/GelfLoggerTest.php @@ -76,7 +76,7 @@ public function testWriteLog() /** * Returns the logger mock. * - * @return PHPUnit_Framework_MockObject_MockObject|\DMK\Mklog\Logger\GelfLogger + * @return PHPUnit_Framework_MockObject_MockObject|GelfLogger */ protected function getGelfLoggerMock() { diff --git a/Tests/Classes/WatchDog/SchedulerWatchDogTest.php b/Tests/Classes/WatchDog/SchedulerWatchDogTest.php index 26e9f64..714e038 100644 --- a/Tests/Classes/WatchDog/SchedulerWatchDogTest.php +++ b/Tests/Classes/WatchDog/SchedulerWatchDogTest.php @@ -145,7 +145,7 @@ public function testGetDemandRespects() /** * Returns the logger mock. * - * @return PHPUnit_Framework_MockObject_MockObject|\DMK\Mklog\WatchDog\SchedulerWatchDog + * @return PHPUnit_Framework_MockObject_MockObject|SchedulerWatchDog */ protected function getSchedulerMock( array $methods = []