phpstan 0.12.6

This commit is contained in:
Dylan K. Taylor 2020-01-20 17:26:48 +00:00
parent cfd975009e
commit e5d62ec901
2 changed files with 1 additions and 6 deletions

View File

@ -43,8 +43,3 @@ parameters:
message: "#^Call to function assert\\(\\) with false and 'unknown hit type' will always evaluate to false\\.$#"
count: 1
path: ../../../src/pocketmine/entity/projectile/Projectile.php
-
message: "#^Strict comparison using \\=\\=\\= between int\\<1, max\\> and 0 will always evaluate to false\\.$#"
count: 1
path: ../../../src/pocketmine/utils/Config.php

View File

@ -14,7 +14,7 @@ while getopts "p:t:" OPTION 2> /dev/null; do
esac
done
[ ! -f phpstan.phar ] && echo "Downloading PHPStan..." && curl -sSLO https://github.com/phpstan/phpstan/releases/download/0.12.5/phpstan.phar
[ ! -f phpstan.phar ] && echo "Downloading PHPStan..." && curl -sSLO https://github.com/phpstan/phpstan/releases/download/0.12.6/phpstan.phar
"$PHP_BINARY" phpstan.phar analyze --no-progress --memory-limit=2G || exit 1
echo "PHPStan scan succeeded"