From c50fe3de58444031d1e1ea4bff50ffde85a366be Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Thu, 27 Jul 2017 21:52:05 +0200 Subject: [PATCH 1/1] Try absolute autoloader path first Resolves: https://github.com/cweiske/php-sqllint/issues/11 --- bin/php-sqllint | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/php-sqllint b/bin/php-sqllint index 8075c9e..fd766bc 100755 --- a/bin/php-sqllint +++ b/bin/php-sqllint @@ -13,12 +13,12 @@ */ namespace phpsqllint; -if (file_exists('vendor/autoload.php')) { - //dependency composer installation - include_once 'vendor/autoload.php'; -} else if (file_exists(__DIR__ . '/../vendor/autoload.php')) { +if (file_exists(__DIR__ . '/../vendor/autoload.php')) { //local git checkout include_once __DIR__ . '/../vendor/autoload.php'; +} else if (file_exists('vendor/autoload.php')) { + //dependency composer installation + include_once 'vendor/autoload.php'; } if (file_exists(__DIR__ . '/../src/phpsqllint/Autoloader.php')) { -- 2.30.2