You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Formatter/OutputFormatter.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -210,9 +210,9 @@ private function createStyleFromString($string)
210
210
foreach ($matchesas$match) {
211
211
array_shift($match);
212
212
213
-
if ('fg' ===$match[0]) {
213
+
if ('fg' == $match[0]) {
214
214
$style->setForeground($match[1]);
215
-
} elseif ('bg' ===$match[0]) {
215
+
} elseif ('bg' == $match[0]) {
216
216
$style->setBackground($match[1]);
217
217
} elseif ('options' === $match[0]) {
218
218
preg_match_all('([^,;]+)', $match[1], $options);
@@ -221,7 +221,7 @@ private function createStyleFromString($string)
221
221
try {
222
222
$style->setOption($option);
223
223
} catch (\InvalidArgumentException$e) {
224
-
@trigger_error(sprintf('Unknown style options are deprecated since version 3.2 and will be removed in 4.0. Exception "%s".', $e->getMessage()), E_USER_DEPRECATED);
224
+
trigger_error(sprintf('Unknown style options are deprecated since version 3.2 and will be removed in 4.0. Exception "%s".', $e->getMessage()), E_USER_DEPRECATED);
array(sprintf('Unknown style options are deprecated since version 3.2 and will be removed in 4.0. Exception "Invalid option specified: "%s". Expected one of (bold, underscore, blink, reverse, conceal)".', $option)),
0 commit comments