From bb1d702446400758e8212631f2c4ba4f40f89966 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Sat, 19 Oct 2019 12:01:04 +0200 Subject: [PATCH] Adjust composer autoload paths in bin It looks like this code was lifted from PHPUnit, which places the binary in the root directory, rather than bin/, which is why we need one more level of ../ everywhere to make things work. --- bin/phpyacc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/phpyacc b/bin/phpyacc index f92ae3d..1ff60dc 100755 --- a/bin/phpyacc +++ b/bin/phpyacc @@ -4,7 +4,7 @@ namespace PhpYacc; use PhpYacc\Grammar\Context; -foreach (array(__DIR__ . '/../../autoload.php', __DIR__ . '/../vendor/autoload.php', __DIR__ . '/vendor/autoload.php') as $file) { +foreach (array(__DIR__ . '/../../../autoload.php', __DIR__ . '/../../vendor/autoload.php', __DIR__ . '/../vendor/autoload.php') as $file) { if (file_exists($file)) { define('COMPOSER_INSTALL', $file);