Skip to content

Commit 0767d6d

Browse files
Merge branch '4.3' into 4.4
* 4.3: [Bridge/PhpUnit] fix looking for composer cs fix
2 parents dfe140a + 9215cc5 commit 0767d6d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/simple-phpunit.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,12 @@
9696
}
9797
}
9898

99-
$COMPOSER = file_exists($COMPOSER = $oldPwd.'/composer.phar') || ($COMPOSER = rtrim('\\' === DIRECTORY_SEPARATOR ? preg_replace('/[\r\n].*/', '', `where.exe composer.phar`) : `which composer.phar 2> /dev/null`))
99+
$COMPOSER = file_exists($COMPOSER = $oldPwd.'/composer.phar')
100+
|| ($COMPOSER = rtrim('\\' === DIRECTORY_SEPARATOR ? preg_replace('/[\r\n].*/', '', `where.exe composer.phar`) : `which composer.phar 2> /dev/null`))
101+
|| ($COMPOSER = rtrim('\\' === DIRECTORY_SEPARATOR ? preg_replace('/[\r\n].*/', '', `where.exe composer`) : `which composer 2> /dev/null`))
100102
? $PHP.' '.escapeshellarg($COMPOSER)
101103
: 'composer';
102104

103-
104105
$SYMFONY_PHPUNIT_REMOVE = $getEnvVar('SYMFONY_PHPUNIT_REMOVE', 'phpspec/prophecy'.($PHPUNIT_VERSION < 6.0 ? ' symfony/yaml': ''));
105106
$configurationHash = md5(implode(PHP_EOL, array(md5_file(__FILE__), $SYMFONY_PHPUNIT_REMOVE, (int) $PHPUNIT_REMOVE_RETURN_TYPEHINT)));
106107
$PHPUNIT_VERSION_DIR=sprintf('phpunit-%s-%d', $PHPUNIT_VERSION, $PHPUNIT_REMOVE_RETURN_TYPEHINT);

0 commit comments

Comments
 (0)