Skip to content

Commit 355bbd1

Browse files
committed
Use a more specific file for detecting the bridge
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
1 parent 76d356f commit 355bbd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if (PHP_VERSION_ID >= 70200) {
2727
}
2828

2929
$root = __DIR__;
30-
while (!file_exists($root.'/composer.json') || file_exists($root.'/bin/simple-phpunit')) {
30+
while (!file_exists($root.'/composer.json') || file_exists($root.'/DeprecationErrorHandler.php')) {
3131
if ($root === dirname($root)) {
3232
break;
3333
}

0 commit comments

Comments
 (0)