phpstan 0.12.3

This commit is contained in:
Dylan K. Taylor 2019-12-28 17:22:08 +00:00
parent d83820477f
commit 2de0ec02ba
2 changed files with 1 additions and 23 deletions

View File

@ -48,29 +48,7 @@ parameters:
count: 1 count: 1
path: ../../../src/pocketmine/entity/projectile/Projectile.php path: ../../../src/pocketmine/entity/projectile/Projectile.php
-
message: "#^Strict comparison using \\=\\=\\= between int\\<min, 3\\> and 4 will always evaluate to false\\.$#"
count: 1
path: ../../../src/pocketmine/level/Level.php
-
message: "#^Instanceof between int and PharFileInfo will always evaluate to false\\.$#"
count: 1
path: ../../../src/pocketmine/plugin/PharPluginLoader.php
- -
message: "#^Strict comparison using \\=\\=\\= between int\\<1, max\\> and 0 will always evaluate to false\\.$#" message: "#^Strict comparison using \\=\\=\\= between int\\<1, max\\> and 0 will always evaluate to false\\.$#"
count: 1 count: 1
path: ../../../src/pocketmine/utils/Config.php path: ../../../src/pocketmine/utils/Config.php
-
#ReflectionFunction::getClosureThis() should be nullable
message: "#^Else branch is unreachable because ternary operator condition is always true\\.$#"
count: 1
path: ../../../src/pocketmine/utils/Utils.php
-
#ReflectionFunction::getClosureScopeClass() should be nullable
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: ../../../src/pocketmine/utils/Utils.php

View File

@ -21,7 +21,7 @@ if [ $? -ne 0 ]; then
exit 1 exit 1
fi fi
[ ! -f phpstan.phar ] && echo "Downloading PHPStan..." && curl -sSLO https://github.com/phpstan/phpstan/releases/download/0.12.2/phpstan.phar [ ! -f phpstan.phar ] && echo "Downloading PHPStan..." && curl -sSLO https://github.com/phpstan/phpstan/releases/download/0.12.3/phpstan.phar
"$PHP_BINARY" phpstan.phar analyze --no-progress --memory-limit=2G || exit 1 "$PHP_BINARY" phpstan.phar analyze --no-progress --memory-limit=2G || exit 1
echo "PHPStan scan succeeded" echo "PHPStan scan succeeded"