diff --git a/src/Tracy/ToggleableTracyToPsrLoggerAdapter.php b/src/Tracy/ToggleableTracyToPsrLoggerAdapter.php index 8df841a..5d7488c 100644 --- a/src/Tracy/ToggleableTracyToPsrLoggerAdapter.php +++ b/src/Tracy/ToggleableTracyToPsrLoggerAdapter.php @@ -13,6 +13,7 @@ final class ToggleableTracyToPsrLoggerAdapter extends TracyToPsrLoggerAdapter public bool $enabled = true; /** + * @param mixed $message * @param array $context */ public function log($level, $message, array $context = []): void diff --git a/tests/Doubles/TestLogger.php b/tests/Doubles/TestLogger.php index a9dae24..9bed760 100644 --- a/tests/Doubles/TestLogger.php +++ b/tests/Doubles/TestLogger.php @@ -14,6 +14,9 @@ class TestLogger extends AbstractLogger /** @var array}>> */ public array $recordsByLevel = []; + /** + * @param string|Stringable $message + */ public function log($level, $message, array $context = []): void { $record = [ diff --git a/tools/phpstan.baseline.neon b/tools/phpstan.baseline.neon index 06b1438..8a78112 100644 --- a/tools/phpstan.baseline.neon +++ b/tools/phpstan.baseline.neon @@ -15,11 +15,6 @@ parameters: count: 1 path: ../tests/Doubles/ExtendedTestHandler.php - - - message: "#^Method Tests\\\\OriNette\\\\Monolog\\\\Doubles\\\\TestLogger\\:\\:log\\(\\) has parameter \\$context with no value type specified in iterable type array\\.$#" - count: 1 - path: ../tests/Doubles/TestLogger.php - - message: "#^Property Tests\\\\OriNette\\\\Monolog\\\\Doubles\\\\TestMailer\\:\\:\\$mails type has no value type specified in iterable type array\\.$#" count: 1