Skip to content

Commit

Permalink
Adjust composer autoload paths in bin
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nikic committed Oct 19, 2019
1 parent a67247b commit bb1d702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/phpyacc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit bb1d702

Please sign in to comment.