From ebe4a663d03b5167623cf76c589f16e0d848f8a0 Mon Sep 17 00:00:00 2001 From: Allan Simon Date: Sun, 3 Sep 2017 14:59:14 +0200 Subject: [PATCH] Update php-language-server.php to include manually the autoload from php_codesniffer see https://github.com/squizlabs/PHP_CodeSniffer/commit/566a0cdf6cdb8fbc5a5a248cdf23f7d77a968de7#diff-b5d0ee8c97c7abd7e3fa29b9a27d1780L27 --- bin/php-language-server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/php-language-server.php b/bin/php-language-server.php index 2a2ab69..bae734a 100644 --- a/bin/php-language-server.php +++ b/bin/php-language-server.php @@ -8,7 +8,7 @@ $options = getopt('', ['tcp::', 'tcp-server::', 'memory-limit::']); ini_set('memory_limit', $options['memory-limit'] ?? '4G'); -foreach ([__DIR__ . '/../../../autoload.php', __DIR__ . '/../autoload.php', __DIR__ . '/../vendor/autoload.php'] as $file) { +foreach ([__DIR__ . '/../../../autoload.php', __DIR__ . '/../autoload.php', __DIR__ . '/../vendor/autoload.php', __DIR__ . '/../vendor/squizlabs/php_codesniffer/autoload.php'] as $file) { if (file_exists($file)) { require $file; break;