Fix phpstan build with latest deps
parent
48d345ac3e
commit
556ca06906
|
@ -176,46 +176,74 @@ abstract class BaseIO implements IOInterface
|
||||||
ProcessExecutor::setTimeout($config->get('process-timeout'));
|
ProcessExecutor::setTimeout($config->get('process-timeout'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string|\Stringable $message
|
||||||
|
*/
|
||||||
public function emergency($message, array $context = []): void
|
public function emergency($message, array $context = []): void
|
||||||
{
|
{
|
||||||
$this->log(LogLevel::EMERGENCY, $message, $context);
|
$this->log(LogLevel::EMERGENCY, $message, $context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string|\Stringable $message
|
||||||
|
*/
|
||||||
public function alert($message, array $context = []): void
|
public function alert($message, array $context = []): void
|
||||||
{
|
{
|
||||||
$this->log(LogLevel::ALERT, $message, $context);
|
$this->log(LogLevel::ALERT, $message, $context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string|\Stringable $message
|
||||||
|
*/
|
||||||
public function critical($message, array $context = []): void
|
public function critical($message, array $context = []): void
|
||||||
{
|
{
|
||||||
$this->log(LogLevel::CRITICAL, $message, $context);
|
$this->log(LogLevel::CRITICAL, $message, $context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string|\Stringable $message
|
||||||
|
*/
|
||||||
public function error($message, array $context = []): void
|
public function error($message, array $context = []): void
|
||||||
{
|
{
|
||||||
$this->log(LogLevel::ERROR, $message, $context);
|
$this->log(LogLevel::ERROR, $message, $context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string|\Stringable $message
|
||||||
|
*/
|
||||||
public function warning($message, array $context = []): void
|
public function warning($message, array $context = []): void
|
||||||
{
|
{
|
||||||
$this->log(LogLevel::WARNING, $message, $context);
|
$this->log(LogLevel::WARNING, $message, $context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string|\Stringable $message
|
||||||
|
*/
|
||||||
public function notice($message, array $context = []): void
|
public function notice($message, array $context = []): void
|
||||||
{
|
{
|
||||||
$this->log(LogLevel::NOTICE, $message, $context);
|
$this->log(LogLevel::NOTICE, $message, $context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string|\Stringable $message
|
||||||
|
*/
|
||||||
public function info($message, array $context = []): void
|
public function info($message, array $context = []): void
|
||||||
{
|
{
|
||||||
$this->log(LogLevel::INFO, $message, $context);
|
$this->log(LogLevel::INFO, $message, $context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string|\Stringable $message
|
||||||
|
*/
|
||||||
public function debug($message, array $context = []): void
|
public function debug($message, array $context = []): void
|
||||||
{
|
{
|
||||||
$this->log(LogLevel::DEBUG, $message, $context);
|
$this->log(LogLevel::DEBUG, $message, $context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param mixed|LogLevel::* $level
|
||||||
|
* @param string|\Stringable $message
|
||||||
|
*/
|
||||||
public function log($level, $message, array $context = []): void
|
public function log($level, $message, array $context = []): void
|
||||||
{
|
{
|
||||||
$message = (string) $message;
|
$message = (string) $message;
|
||||||
|
|
Loading…
Reference in New Issue