From 3773a2da0a1e0903cc746d28f9a9c1dc99b318fc Mon Sep 17 00:00:00 2001 From: Sara Itani Date: Wed, 1 Mar 2017 18:06:11 -0800 Subject: [PATCH] Fix formatting breakage PHP_CodeSniffer 3.0 RC4 introduces a breaking change that removes PHPCS from the composer autoloader. This fix adds a bootstrapping step so that we can invoke the autoloader automatically. --- composer.json | 3 ++- phpunit.xml.dist | 2 +- src/bootstrap.php | 5 +++++ 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 src/bootstrap.php diff --git a/composer.json b/composer.json index 268a989..2d22278 100644 --- a/composer.json +++ b/composer.json @@ -47,7 +47,8 @@ "LanguageServer\\": "src/" }, "files" : [ - "src/utils.php" + "src/utils.php", + "src/boostrap.php" ] }, "autoload-dev": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 4e3f6be..ef1befe 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,5 +1,5 @@ - + ./tests diff --git a/src/bootstrap.php b/src/bootstrap.php new file mode 100644 index 0000000..eee6162 --- /dev/null +++ b/src/bootstrap.php @@ -0,0 +1,5 @@ +