From 7383f1ee33078a1d3bf3e806005037134b3afb8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Sun, 1 Dec 2024 12:47:30 +0100 Subject: [PATCH] fix phpstan --- src/Console.php | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/src/Console.php b/src/Console.php index c7619778c8..ee9defcc15 100644 --- a/src/Console.php +++ b/src/Console.php @@ -416,48 +416,72 @@ public function runMethod($object, string $method, array $args = []) return $this; } + /** + * @param string|\Stringable $message + */ #[\Override] public function emergency($message, array $context = []): void { $this->outputHtml('' . $this->escapeOutputHtml($message) . '', $context); } + /** + * @param string|\Stringable $message + */ #[\Override] public function alert($message, array $context = []): void { $this->outputHtml('' . $this->escapeOutputHtml($message) . '', $context); } + /** + * @param string|\Stringable $message + */ #[\Override] public function critical($message, array $context = []): void { $this->outputHtml('' . $this->escapeOutputHtml($message) . '', $context); } + /** + * @param string|\Stringable $message + */ #[\Override] public function error($message, array $context = []): void { $this->outputHtml('' . $this->escapeOutputHtml($message) . '', $context); } + /** + * @param string|\Stringable $message + */ #[\Override] public function warning($message, array $context = []): void { $this->outputHtml('' . $this->escapeOutputHtml($message) . '', $context); } + /** + * @param string|\Stringable $message + */ #[\Override] public function notice($message, array $context = []): void { $this->outputHtml('' . $this->escapeOutputHtml($message) . '', $context); } + /** + * @param string|\Stringable $message + */ #[\Override] public function info($message, array $context = []): void { $this->outputHtml('' . $this->escapeOutputHtml($message) . '', $context); } + /** + * @param string|\Stringable $message + */ #[\Override] public function debug($message, array $context = []): void { @@ -465,7 +489,8 @@ public function debug($message, array $context = []): void } /** - * @param LogLevel::* $level + * @param LogLevel::* $level + * @param string|\Stringable $message */ #[\Override] public function log($level, $message, array $context = []): void