Skip to content

Commit

Permalink
fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Dec 1, 2024
1 parent 78b7fd5 commit 7383f1e
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion src/Console.php
Original file line number Diff line number Diff line change
Expand Up @@ -416,56 +416,81 @@ public function runMethod($object, string $method, array $args = [])
return $this;
}

/**
* @param string|\Stringable $message
*/
#[\Override]
public function emergency($message, array $context = []): void
{
$this->outputHtml('<font color="pink">' . $this->escapeOutputHtml($message) . '</font>', $context);
}

/**
* @param string|\Stringable $message
*/
#[\Override]
public function alert($message, array $context = []): void
{
$this->outputHtml('<font color="pink">' . $this->escapeOutputHtml($message) . '</font>', $context);
}

/**
* @param string|\Stringable $message
*/
#[\Override]
public function critical($message, array $context = []): void
{
$this->outputHtml('<font color="pink">' . $this->escapeOutputHtml($message) . '</font>', $context);
}

/**
* @param string|\Stringable $message
*/
#[\Override]
public function error($message, array $context = []): void
{
$this->outputHtml('<font color="pink">' . $this->escapeOutputHtml($message) . '</font>', $context);
}

/**
* @param string|\Stringable $message
*/
#[\Override]
public function warning($message, array $context = []): void
{
$this->outputHtml('<font color="pink">' . $this->escapeOutputHtml($message) . '</font>', $context);
}

/**
* @param string|\Stringable $message
*/
#[\Override]
public function notice($message, array $context = []): void
{
$this->outputHtml('<font color="yellow">' . $this->escapeOutputHtml($message) . '</font>', $context);
}

/**
* @param string|\Stringable $message
*/
#[\Override]
public function info($message, array $context = []): void
{
$this->outputHtml('<font color="gray">' . $this->escapeOutputHtml($message) . '</font>', $context);
}

/**
* @param string|\Stringable $message
*/
#[\Override]
public function debug($message, array $context = []): void
{
$this->outputHtml('<font color="cyan">' . $this->escapeOutputHtml($message) . '</font>', $context);
}

/**
* @param LogLevel::* $level
* @param LogLevel::* $level
* @param string|\Stringable $message
*/
#[\Override]
public function log($level, $message, array $context = []): void
Expand Down

0 comments on commit 7383f1e

Please sign in to comment.