optimize type hints

This commit is contained in:
sunxyw
2022-05-13 18:38:23 +08:00
parent 5423de6df5
commit 3e10a5b758

View File

@@ -29,7 +29,7 @@ class ConsoleLogger extends AbstractLogger
/** /**
* 颜色表 * 颜色表
* *
* @var array{int, array{string}} * @var string[][]
*/ */
protected static $styles = [ protected static $styles = [
['blink', 'white', 'bg_bright_red'], // emergency ['blink', 'white', 'bg_bright_red'], // emergency
@@ -45,7 +45,7 @@ class ConsoleLogger extends AbstractLogger
/** /**
* 等级表 * 等级表
* *
* @var array{int, int} * @var string[]
*/ */
protected static $levels = [ protected static $levels = [
LogLevel::EMERGENCY, // 0 LogLevel::EMERGENCY, // 0
@@ -85,7 +85,7 @@ class ConsoleLogger extends AbstractLogger
/** /**
* 获取当前样式表 * 获取当前样式表
* *
* @return array{int, array{string}} * @return string[][]
*/ */
public static function getStyles(): array public static function getStyles(): array
{ {