We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6097da commit d7dd0ecCopy full SHA for d7dd0ec
1 file changed
src/Output/Color.php
@@ -235,11 +235,11 @@ public function __call(string $name, array $arguments): string
235
}
236
237
if (!method_exists($this, $name)) {
238
- if (self::$colors_enabled) {
239
- throw new InvalidArgumentException(sprintf('Style "%s" not defined', $name));
+ if (!self::$colors_enabled) {
+ return $text;
240
241
242
- return $text;
+ throw new InvalidArgumentException(sprintf('Style "%s" not defined', $name));
243
244
245
return $this->{$name}($text, $style);
0 commit comments