From 1a4166f8d360afa570fb6d15027ffdc520b829a6 Mon Sep 17 00:00:00 2001 From: Thijs Kinkhorst <thijs@kinkhorst.com> Date: Thu, 24 May 2018 09:14:10 +0000 Subject: [PATCH] Upgrade psalm to 0.3.92. Ignore closure return types, as we need to support PHP < 7. This is not really workable. Need to devise another way to run psalm periodically without keeping it breaking the build. --- .travis.yml | 3 ++- psalm.xml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3ccf62cdd..d97ff3a7e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,11 +12,12 @@ matrix: - php: hhvm before_script: - composer update -- if [[ "$TRAVIS_PHP_VERSION" == "7.0" ]]; then composer require --dev vimeo/psalm:0.3.72; fi +- if [[ "$TRAVIS_PHP_VERSION" == "7.0" ]]; then composer require --dev vimeo/psalm:0.3.92; fi - if [[ "$TRAVIS_PHP_VERSION" == "5.6" ]]; then composer require --dev php-coveralls/php-coveralls; fi script: - bin/check-syntax.sh - if [[ "$TRAVIS_PHP_VERSION" == "5.6" ]]; then php vendor/phpunit/phpunit/phpunit --configuration tools/phpunit; else php vendor/phpunit/phpunit/phpunit --configuration tools/phpunit --no-coverage; fi +- if [[ "$TRAVIS_PHP_VERSION" == "7.0" ]]; then vendor/bin/psalm; fi after_success: - if [[ "$TRAVIS_PHP_VERSION" == "5.6" ]]; then php vendor/bin/php-coveralls -v; fi notifications: diff --git a/psalm.xml b/psalm.xml index 575f74033..de26534bc 100644 --- a/psalm.xml +++ b/psalm.xml @@ -23,6 +23,7 @@ <PropertyNotSetInConstructor errorLevel="info" /> <MissingConstructor errorLevel="info" /> + <MissingClosureParamType errorLevel="info" /> <UnusedClass errorLevel="info" /> <PossiblyUnusedMethod errorLevel="info" /> <UntypedParam errorLevel="info" /> -- GitLab