1
0
Fork 0

Fix phpstan build with latest deps

pull/12088/head
Jordi Boggiano 2024-08-21 16:44:20 +02:00
parent 48d345ac3e
commit 556ca06906
No known key found for this signature in database
1 changed files with 28 additions and 0 deletions

View File

@ -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;