@@ -21,23 +21,31 @@ public static function error(string $message, bool $exit = false): void
2121 {
2222 $ message = ColorEnum::colorize ($ message , ColorEnum::ForegroundBrightRed);
2323
24- fwrite (STDERR , ' ❌ ' . $ message . PHP_EOL );
24+ fwrite (STDERR , $ message . PHP_EOL );
2525 $ exit && exit (self ::FAILURE );
2626 }
2727
2828 public static function info (string $ message , bool $ exit = false ): void
2929 {
3030 $ message = ColorEnum::colorize ($ message , ColorEnum::ForegroundBrightBlue);
3131
32- fwrite (STDOUT , ' ℹ️ ' . $ message . PHP_EOL );
32+ fwrite (STDOUT , $ message . PHP_EOL );
3333 $ exit && exit (self ::SUCCESS );
3434 }
3535
3636 public static function success (string $ message , bool $ exit = false ): void
3737 {
3838 $ message = ColorEnum::colorize ($ message , ColorEnum::ForegroundBrightGreen);
3939
40- fwrite (STDOUT , '✅ ' . $ message . PHP_EOL );
40+ fwrite (STDOUT , $ message . PHP_EOL );
41+ $ exit && exit (self ::SUCCESS );
42+ }
43+
44+ public static function warning (string $ message , bool $ exit = false ): void
45+ {
46+ $ message = ColorEnum::colorize ($ message , ColorEnum::ForegroundBrightYellow);
47+
48+ fwrite (STDOUT , $ message . PHP_EOL );
4149 $ exit && exit (self ::SUCCESS );
4250 }
4351
0 commit comments