From 3e4f100a6b3f3922edb60cf4838eb17a9a42fbf0 Mon Sep 17 00:00:00 2001 From: Rostislav Mykhajliw Date: Mon, 29 Jun 2015 06:29:54 +0300 Subject: [PATCH] Fix autoloading The real path to phpsa is vendor/ovr/phpsa/bin that why it requires going up to 3 levels ../../../ to reach vendor folder --- bin/phpsa | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/phpsa b/bin/phpsa index 44f02bad..72268f1a 100755 --- a/bin/phpsa +++ b/bin/phpsa @@ -6,7 +6,7 @@ if (!ini_get('date.timezone')) { /** * @author Patsura Dmitry http://github.com/ovr */ -foreach (array(__DIR__ . '/../../autoload.php', __DIR__ . '/../vendor/autoload.php', __DIR__ . '/vendor/autoload.php') as $file) { +foreach (array(__DIR__ . '/../../../autoload.php', __DIR__ . '/../../autoload.php', __DIR__ . '/../vendor/autoload.php', __DIR__ . '/vendor/autoload.php') as $file) { if (file_exists($file)) { include_once $file; define('COMPOSER_INSTALL', $file);