Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit aba3772

Browse filesBrowse files
Check the option names for values never and always
1 parent 4f4ba82 commit aba3772
Copy full SHA for aba3772

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎src/Symfony/Bridge/PhpUnit/bin/simple-phpunit

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/bin/simple-phpunit
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ if (false === $COMPOSER = \getenv('COMPOSER_BINARY')) {
7272
? (file_get_contents($COMPOSER, false, null, 0, 18) === '#!/usr/bin/env php' ? $PHP : '').' '.escapeshellarg($COMPOSER) // detect shell wrappers by looking at the shebang
7373
: 'composer';
7474
}
75-
if (in_array('never', $argv, true) || in_array('--colors=never', $argv, true)) {
75+
if (in_array('--colors=never', $argv, true) || ($argv[array_search('never', $argv, true) - 1] ?? '') === '--colors') {
7676
$COMPOSER .= ' --no-ansi';
77-
} elseif (in_array('always', $argv, true) || in_array('colors=always', $argv, true)) {
77+
} elseif (in_array('--colors=always', $argv, true) || ($argv[array_search('always', $argv, true) - 1] ?? '') === '--colors') {
7878
$COMPOSER .= ' --ansi';
7979
}
8080

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.