Skip to content

Commit 7ad8047

Browse files
committed
Updated path resolution for symlinks
I wanted to symlink the file in vendor/bin to an other folder and `__DIR__` was resolved to this new folder. by adding `realpath` it resolves the symlink and works again.
1 parent 439f7f6 commit 7ad8047

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

composer/bin/phpunit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
define('PHPUnit_MAIN_METHOD', 'PHPUnit_TextUI_Command::main');
3939

4040
$files = array(
41-
__DIR__ . '/../../vendor/autoload.php',
42-
__DIR__ . '/../../../../autoload.php'
41+
realpath(__DIR__) . '/../../vendor/autoload.php',
42+
realpath(__DIR__) . '/../../../../autoload.php'
4343
);
4444

4545
foreach ($files as $file) {

0 commit comments

Comments
 (0)