diff --git a/tests/phpstan/configs/phpstan-bugs.neon b/tests/phpstan/configs/phpstan-bugs.neon index f795f97781..8907818ba3 100644 --- a/tests/phpstan/configs/phpstan-bugs.neon +++ b/tests/phpstan/configs/phpstan-bugs.neon @@ -48,29 +48,7 @@ parameters: count: 1 path: ../../../src/pocketmine/entity/projectile/Projectile.php - - - message: "#^Strict comparison using \\=\\=\\= between int\\ 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\\.$#" count: 1 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 diff --git a/tests/travis.sh b/tests/travis.sh index ee50532626..6c787b451e 100755 --- a/tests/travis.sh +++ b/tests/travis.sh @@ -21,7 +21,7 @@ if [ $? -ne 0 ]; then exit 1 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 echo "PHPStan scan succeeded"