Browse Source

Bump up to phpstan 0.8.

ADmad 8 years ago
parent
commit
c5f114c7ee
2 changed files with 2 additions and 2 deletions
  1. 1 1
      .travis.yml
  2. 1 1
      phpstan.neon

+ 1 - 1
.travis.yml

@@ -76,7 +76,7 @@ script:
   - if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION != 7.0 ]]; then vendor/bin/phpunit; fi
 
   - if [[ $PHPCS = 1 ]]; then composer cs-check; fi
-  - if [[ $PHPSTAN = 1 ]]; then composer require --dev phpstan/phpstan:^0.7 && vendor/bin/phpstan analyse -c phpstan.neon -l 1 src; fi
+  - if [[ $PHPSTAN = 1 ]]; then composer require --dev phpstan/phpstan:^0.8 && vendor/bin/phpstan analyse -c phpstan.neon -l 1 src; fi
 
 after_success:
   - if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.0 ]]; then bash <(curl -s https://codecov.io/bash); fi

+ 1 - 1
phpstan.neon

@@ -15,7 +15,7 @@ parameters:
         - '#Access to an undefined property Cake\\[a-zA-Z0-9_\\]+::\$_validViewOptions#'
         - '#Access to an undefined property Cake\\Database\\Driver::\$_connection#'
         - '#Constant XC_TYPE_VAR not found#'
-        - '#Call to static method id\(\) on an unknown class PHPUnit_Runner_Version#'
+        - '#Class PHPUnit_Runner_Version not found and could not be autoloaded#'
     earlyTerminatingMethodCalls:
         Cake\Shell\Shell:
             - abort