From 309757b6bc3c81fa3fdc2b5ded660934b42ef2e8 Mon Sep 17 00:00:00 2001 From: Daniel Hensby Date: Mon, 3 Jul 2017 12:07:51 +0100 Subject: [PATCH] Install php_codesniffer with composer --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e9e6e18fcbd..558e5cca35b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -49,7 +49,7 @@ before_script: # Init PHP - export CORE_RELEASE=$TRAVIS_BRANCH - printf "\n" | pecl install imagick - - if [[ $PHPCS_TEST ]]; then pear install pear/PHP_CodeSniffer; fi + - if [[ $PHPCS_TEST ]]; then composer global require squizlabs/php_codesniffer:^3; fi - phpenv rehash - phpenv config-rm xdebug.ini - echo 'memory_limit = 2048M' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini