Skip to content

Commit 1a4166f

Browse files
committed
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.
1 parent f7adacc commit 1a4166f

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ matrix:
1212
- php: hhvm
1313
before_script:
1414
- composer update
15-
- if [[ "$TRAVIS_PHP_VERSION" == "7.0" ]]; then composer require --dev vimeo/psalm:0.3.72; fi
15+
- if [[ "$TRAVIS_PHP_VERSION" == "7.0" ]]; then composer require --dev vimeo/psalm:0.3.92; fi
1616
- if [[ "$TRAVIS_PHP_VERSION" == "5.6" ]]; then composer require --dev php-coveralls/php-coveralls; fi
1717
script:
1818
- bin/check-syntax.sh
1919
- 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
20+
- if [[ "$TRAVIS_PHP_VERSION" == "7.0" ]]; then vendor/bin/psalm; fi
2021
after_success:
2122
- if [[ "$TRAVIS_PHP_VERSION" == "5.6" ]]; then php vendor/bin/php-coveralls -v; fi
2223
notifications:

psalm.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
<PropertyNotSetInConstructor errorLevel="info" />
2525
<MissingConstructor errorLevel="info" />
26+
<MissingClosureParamType errorLevel="info" />
2627
<UnusedClass errorLevel="info" />
2728
<PossiblyUnusedMethod errorLevel="info" />
2829
<UntypedParam errorLevel="info" />

0 commit comments

Comments
 (0)