Browse Source

try to fix sniffer installation

Anthony GRASSIOT 9 years ago
parent
commit
86a3d4443e

+ 3 - 2
.travis.yml

@@ -87,8 +87,9 @@ before_install:
   - set +H
 
 before_script:
-  - if [[ $PHPCS != 3 ]]; then composer install --prefer-dist --no-interaction; fi
-  - if [[ $PHPCS = 3 ]]; then composer require --dev  squizlabs/php_codesniffer=3.0.x-dev@dev cakephp/cakephp-codesniffer=3.0.x-dev@dev; fi
+  - composer install --prefer-dist --no-interaction
+  - if [[ $PHPCS = 3 ]]; then composer remove --dev cakephp/cakephp-codesniffer; fi
+  - if [[ $PHPCS = 3 ]]; then composer require --dev squizlabs/php_codesniffer='3.0.*@dev' cakephp/cakephp-codesniffer='3.0.*@dev'; fi
 
 script:
   - if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.0 ]]; then export CODECOVERAGE=1; vendor/bin/phpunit --coverage-clover=clover.xml; fi

+ 1 - 0
src/Collection/CollectionTrait.php

@@ -704,6 +704,7 @@ trait CollectionTrait
      * @return \Iterator
      * @deprecated
      */
+    // @codingStandardsIgnoreLine
     public function _unwrap()
     {
         return $this->unwrap();

+ 1 - 0
src/Database/Dialect/SqlserverDialectTrait.php

@@ -80,6 +80,7 @@ trait SqlserverDialectTrait
      *
      * @return int
      */
+    // @codingStandardsIgnoreLine
     public function _version()
     {
         $this->connect();