mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-02 14:25:38 +08:00
PHP80 小修 (#187)
* migrate-php80 fix styles fix static analyse * fix some bugs
This commit is contained in:
@@ -184,9 +184,7 @@ class ZMResultPrinter extends CliTestDoxPrinter
|
||||
|
||||
if ($this->colors) {
|
||||
$color = self::STATUS_STYLES[$result['status']]['color'] ?? '';
|
||||
$prefix = array_map(static function ($p) use ($color) {
|
||||
return Color::colorize($color, $p);
|
||||
}, self::PREFIX_DECORATED);
|
||||
$prefix = array_map(static fn ($p) => Color::colorize($color, $p), self::PREFIX_DECORATED);
|
||||
}
|
||||
|
||||
$out = '';
|
||||
|
||||
Reference in New Issue
Block a user