Browse Source

Use phpstan level 3 by default.

ADmad 7 years ago
parent
commit
465edec4d9
2 changed files with 2 additions and 11 deletions
  1. 1 10
      .travis.yml
  2. 1 1
      phpstan.neon

+ 1 - 10
.travis.yml

@@ -44,13 +44,6 @@ matrix:
     - php: 7.1
       env: STATIC_ANALYSIS=1 DEFAULT=0
 
-    - php: 7.2
-      env: STATIC_ANALYSIS=1 PHPSTAN_LEVEL_3=1 DEFAULT=0
-
-  allow_failures:
-    - php: 7.2
-      env: STATIC_ANALYSIS=1 PHPSTAN_LEVEL_3=1 DEFAULT=0
-
 before_install:
   - echo cakephp version && tail -1 VERSION.txt
   - if [[ ${TRAVIS_PHP_VERSION} != "7.3" ]]; then phpenv config-rm xdebug.ini; fi
@@ -83,13 +76,11 @@ script:
   - if [[ $PHPCS = 1 ]]; then composer cs-check; fi
 
   - |
-      if [[ $STATIC_ANALYSIS = 1 && $PHPSTAN_LEVEL_3 != 1 ]]; then
+      if [[ $STATIC_ANALYSIS = 1 ]]; then
         composer require --dev phpstan/phpstan:^0.11 vimeo/psalm:^3.0
         vendor/bin/phpstan analyse src && vendor/bin/psalm --show-info=false
       fi
 
-  - if [[ $PHPSTAN_LEVEL_3 = 1 ]]; then composer require --dev phpstan/phpstan:^0.11 && vendor/bin/phpstan analyse -l 3 src; fi
-
 after_success:
   - if [[ $CODECOVERAGE = 1 ]]; then bash <(curl -s https://codecov.io/bash); fi
 

+ 1 - 1
phpstan.neon

@@ -1,5 +1,5 @@
 parameters:
-    level: 2
+    level: 3
     autoload_files:
         - tests/bootstrap.php
     ignoreErrors: