Skip to content

Commit

Permalink
Use a more specific file for detecting the bridge
Browse files Browse the repository at this point in the history
When using bin as a Composer bin-dir, this will break because both
composer.json and bin/simple-phpunit will exist relatively to the
current directory. This change checks for a non-binary file specific to
the bridge that will not have this issue.
Fixes #25228
  • Loading branch information
greg0ire committed Nov 30, 2017
1 parent 76d356f commit 355bbd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Bridge/PhpUnit/bin/simple-phpunit
Expand Up @@ -27,7 +27,7 @@ if (PHP_VERSION_ID >= 70200) {
}

$root = __DIR__;
while (!file_exists($root.'/composer.json') || file_exists($root.'/bin/simple-phpunit')) {
while (!file_exists($root.'/composer.json') || file_exists($root.'/DeprecationErrorHandler.php')) {
if ($root === dirname($root)) {
break;
}
Expand Down

0 comments on commit 355bbd1

Please sign in to comment.