Skip to content

Commit

Permalink
fix PHP 7.4 stan
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Nov 4, 2024
1 parent b9a90c0 commit 8187132
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/Console.php
Original file line number Diff line number Diff line change
Expand Up @@ -416,48 +416,72 @@ public function runMethod($object, string $method, array $args = [])
return $this;
}

/**
* @param string $message
*/
#[\Override]

Check failure on line 422 in src/Console.php

View workflow job for this annotation

GitHub Actions / Smoke (latest, StaticAnalysis)

Parameter #1 $message (string) of method Atk4\Ui\Console::emergency() should be contravariant with parameter $message (string|Stringable) of method Psr\Log\LoggerInterface::emergency()

Check failure on line 422 in src/Console.php

View workflow job for this annotation

GitHub Actions / Smoke (latest, StaticAnalysis)

Parameter #1 $message (string) of method Atk4\Ui\Console::emergency() should be contravariant with parameter $message (string|Stringable) of method Psr\Log\LoggerInterface::emergency()
public function emergency($message, array $context = []): void
{
$this->outputHtml('<font color="pink">' . $this->escapeOutputHtml($message) . '</font>', $context);
}

/**
* @param string $message
*/
#[\Override]

Check failure on line 431 in src/Console.php

View workflow job for this annotation

GitHub Actions / Smoke (latest, StaticAnalysis)

Parameter #1 $message (string) of method Atk4\Ui\Console::alert() should be contravariant with parameter $message (string|Stringable) of method Psr\Log\LoggerInterface::alert()

Check failure on line 431 in src/Console.php

View workflow job for this annotation

GitHub Actions / Smoke (latest, StaticAnalysis)

Parameter #1 $message (string) of method Atk4\Ui\Console::alert() should be contravariant with parameter $message (string|Stringable) of method Psr\Log\LoggerInterface::alert()
public function alert($message, array $context = []): void
{
$this->outputHtml('<font color="pink">' . $this->escapeOutputHtml($message) . '</font>', $context);
}

/**
* @param string $message
*/
#[\Override]

Check failure on line 440 in src/Console.php

View workflow job for this annotation

GitHub Actions / Smoke (latest, StaticAnalysis)

Parameter #1 $message (string) of method Atk4\Ui\Console::critical() should be contravariant with parameter $message (string|Stringable) of method Psr\Log\LoggerInterface::critical()

Check failure on line 440 in src/Console.php

View workflow job for this annotation

GitHub Actions / Smoke (latest, StaticAnalysis)

Parameter #1 $message (string) of method Atk4\Ui\Console::critical() should be contravariant with parameter $message (string|Stringable) of method Psr\Log\LoggerInterface::critical()
public function critical($message, array $context = []): void
{
$this->outputHtml('<font color="pink">' . $this->escapeOutputHtml($message) . '</font>', $context);
}

/**
* @param string $message
*/
#[\Override]

Check failure on line 449 in src/Console.php

View workflow job for this annotation

GitHub Actions / Smoke (latest, StaticAnalysis)

Parameter #1 $message (string) of method Atk4\Ui\Console::error() should be contravariant with parameter $message (string|Stringable) of method Psr\Log\LoggerInterface::error()

Check failure on line 449 in src/Console.php

View workflow job for this annotation

GitHub Actions / Smoke (latest, StaticAnalysis)

Parameter #1 $message (string) of method Atk4\Ui\Console::error() should be contravariant with parameter $message (string|Stringable) of method Psr\Log\LoggerInterface::error()
public function error($message, array $context = []): void
{
$this->outputHtml('<font color="pink">' . $this->escapeOutputHtml($message) . '</font>', $context);
}

/**
* @param string $message
*/
#[\Override]

Check failure on line 458 in src/Console.php

View workflow job for this annotation

GitHub Actions / Smoke (latest, StaticAnalysis)

Parameter #1 $message (string) of method Atk4\Ui\Console::warning() should be contravariant with parameter $message (string|Stringable) of method Psr\Log\LoggerInterface::warning()

Check failure on line 458 in src/Console.php

View workflow job for this annotation

GitHub Actions / Smoke (latest, StaticAnalysis)

Parameter #1 $message (string) of method Atk4\Ui\Console::warning() should be contravariant with parameter $message (string|Stringable) of method Psr\Log\LoggerInterface::warning()
public function warning($message, array $context = []): void
{
$this->outputHtml('<font color="pink">' . $this->escapeOutputHtml($message) . '</font>', $context);
}

/**
* @param string $message
*/
#[\Override]

Check failure on line 467 in src/Console.php

View workflow job for this annotation

GitHub Actions / Smoke (latest, StaticAnalysis)

Parameter #1 $message (string) of method Atk4\Ui\Console::notice() should be contravariant with parameter $message (string|Stringable) of method Psr\Log\LoggerInterface::notice()

Check failure on line 467 in src/Console.php

View workflow job for this annotation

GitHub Actions / Smoke (latest, StaticAnalysis)

Parameter #1 $message (string) of method Atk4\Ui\Console::notice() should be contravariant with parameter $message (string|Stringable) of method Psr\Log\LoggerInterface::notice()
public function notice($message, array $context = []): void
{
$this->outputHtml('<font color="yellow">' . $this->escapeOutputHtml($message) . '</font>', $context);
}

/**
* @param string $message
*/
#[\Override]

Check failure on line 476 in src/Console.php

View workflow job for this annotation

GitHub Actions / Smoke (latest, StaticAnalysis)

Parameter #1 $message (string) of method Atk4\Ui\Console::info() should be contravariant with parameter $message (string|Stringable) of method Psr\Log\LoggerInterface::info()

Check failure on line 476 in src/Console.php

View workflow job for this annotation

GitHub Actions / Smoke (latest, StaticAnalysis)

Parameter #1 $message (string) of method Atk4\Ui\Console::info() should be contravariant with parameter $message (string|Stringable) of method Psr\Log\LoggerInterface::info()
public function info($message, array $context = []): void
{
$this->outputHtml('<font color="gray">' . $this->escapeOutputHtml($message) . '</font>', $context);
}

/**
* @param string $message
*/
#[\Override]

Check failure on line 485 in src/Console.php

View workflow job for this annotation

GitHub Actions / Smoke (latest, StaticAnalysis)

Parameter #1 $message (string) of method Atk4\Ui\Console::debug() should be contravariant with parameter $message (string|Stringable) of method Psr\Log\LoggerInterface::debug()

Check failure on line 485 in src/Console.php

View workflow job for this annotation

GitHub Actions / Smoke (latest, StaticAnalysis)

Parameter #1 $message (string) of method Atk4\Ui\Console::debug() should be contravariant with parameter $message (string|Stringable) of method Psr\Log\LoggerInterface::debug()
public function debug($message, array $context = []): void
{
Expand All @@ -466,6 +490,7 @@ public function debug($message, array $context = []): void

/**
* @param LogLevel::* $level
* @param string $message
*/
#[\Override]

Check failure on line 495 in src/Console.php

View workflow job for this annotation

GitHub Actions / Smoke (latest, StaticAnalysis)

Parameter #2 $message (string) of method Atk4\Ui\Console::log() should be contravariant with parameter $message (string|Stringable) of method Psr\Log\LoggerInterface::log()

Check failure on line 495 in src/Console.php

View workflow job for this annotation

GitHub Actions / Smoke (latest, StaticAnalysis)

Parameter #2 $message (string) of method Atk4\Ui\Console::log() should be contravariant with parameter $message (string|Stringable) of method Psr\Log\LoggerInterface::log()
public function log($level, $message, array $context = []): void
Expand Down

0 comments on commit 8187132

Please sign in to comment.