From 51b07e2528267646097e7a1467a2ed79d382454f Mon Sep 17 00:00:00 2001 From: Edie Lemoine Date: Fri, 4 Oct 2024 14:22:03 +0200 Subject: [PATCH] refactor: fix phpdocs --- src/Logger/AbstractLogger.php | 4 ++-- src/Logger/Contract/PdkLoggerInterface.php | 2 +- tests/Bootstrap/MockLogger.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Logger/AbstractLogger.php b/src/Logger/AbstractLogger.php index d8af4450b..5e6117848 100644 --- a/src/Logger/AbstractLogger.php +++ b/src/Logger/AbstractLogger.php @@ -96,8 +96,8 @@ public function error($message, array $context = []): void } /** - * @TODO : remove this default in v3.0.0, for now it's here to prevent breaking changes - * @return array{notice?: string, warning?: string, error?: string, critical?: string, alert?: string, emergency?: string} + * @TODO: remove this default in v3.0.0, for now it's here to prevent breaking changes + * @return string[] * @codeCoverageIgnore */ public function getLogFiles(): array diff --git a/src/Logger/Contract/PdkLoggerInterface.php b/src/Logger/Contract/PdkLoggerInterface.php index bb58a8287..ba3e4615b 100644 --- a/src/Logger/Contract/PdkLoggerInterface.php +++ b/src/Logger/Contract/PdkLoggerInterface.php @@ -20,7 +20,7 @@ public function deprecated(string $subject, ?string $replacement = null, array $ /** * Get all logs as an associative array with log levels as keys and log file paths as values. * - * @return array{notice?: string, warning?: string, error?: string, critical?: string, alert?: string, emergency?: string} + * @return string[] */ public function getLogFiles(): array; } diff --git a/tests/Bootstrap/MockLogger.php b/tests/Bootstrap/MockLogger.php index 79f7611eb..7227a5da1 100644 --- a/tests/Bootstrap/MockLogger.php +++ b/tests/Bootstrap/MockLogger.php @@ -66,7 +66,7 @@ public function clear(): void } /** - * @inheritDoc + * @return string[] */ public function getLogFiles(): array {