diff --git a/composer.json b/composer.json index 11a8f8eb6..7bc7933ca 100644 --- a/composer.json +++ b/composer.json @@ -49,7 +49,7 @@ "ocramius/package-versions": "^1.5" }, "require-dev": { - "phpstan/phpstan": "^0.12.22", + "phpstan/phpstan": "^0.12.25", "irstea/phpunit-shim": "^8.5", "phpstan/phpstan-phpunit": "^0.12.6", "phpstan/phpstan-strict-rules": "^0.12.2" diff --git a/composer.lock b/composer.lock index 5149c9f37..e8d057667 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "ddcd2b92755f3ad3f9a8a75d2c794194", + "content-hash": "475fdc2cb5250b9813bc55fb87f7733c", "packages": [ { "name": "adhocore/json-comment", diff --git a/tests/phpstan/configs/phpstan-bugs.neon b/tests/phpstan/configs/phpstan-bugs.neon index 22a51e2fb..bd2169ecf 100644 --- a/tests/phpstan/configs/phpstan-bugs.neon +++ b/tests/phpstan/configs/phpstan-bugs.neon @@ -25,26 +25,6 @@ parameters: count: 3 path: ../../../src/command/CommandReader.php - - - message: "#^Default value of the parameter \\#4 \\$min \\(int\\) of method pocketmine\\\\command\\\\defaults\\\\VanillaCommand\\:\\:getRelativeDouble\\(\\) is incompatible with type float\\.$#" - count: 1 - path: ../../../src/command/defaults/VanillaCommand.php - - - - message: "#^Default value of the parameter \\#5 \\$max \\(int\\) of method pocketmine\\\\command\\\\defaults\\\\VanillaCommand\\:\\:getRelativeDouble\\(\\) is incompatible with type float\\.$#" - count: 1 - path: ../../../src/command/defaults/VanillaCommand.php - - - - message: "#^Default value of the parameter \\#3 \\$min \\(int\\) of method pocketmine\\\\command\\\\defaults\\\\VanillaCommand\\:\\:getDouble\\(\\) is incompatible with type float\\.$#" - count: 1 - path: ../../../src/command/defaults/VanillaCommand.php - - - - message: "#^Default value of the parameter \\#4 \\$max \\(int\\) of method pocketmine\\\\command\\\\defaults\\\\VanillaCommand\\:\\:getDouble\\(\\) is incompatible with type float\\.$#" - count: 1 - path: ../../../src/command/defaults/VanillaCommand.php - - message: "#^Call to function assert\\(\\) with false and 'unknown hit type' will always evaluate to false\\.$#" count: 1 @@ -95,31 +75,6 @@ parameters: count: 2 path: ../../../src/world/format/io/region/RegionLoader.php - - - message: "#^Default value of the parameter \\#1 \\$pitch \\(int\\) of method pocketmine\\\\world\\\\sound\\\\ClickSound\\:\\:__construct\\(\\) is incompatible with type float\\.$#" - count: 1 - path: ../../../src/world/sound/ClickSound.php - - - - message: "#^Default value of the parameter \\#1 \\$pitch \\(int\\) of method pocketmine\\\\world\\\\sound\\\\DoorSound\\:\\:__construct\\(\\) is incompatible with type float\\.$#" - count: 1 - path: ../../../src/world/sound/DoorSound.php - - - - message: "#^Default value of the parameter \\#1 \\$pitch \\(int\\) of method pocketmine\\\\world\\\\sound\\\\FizzSound\\:\\:__construct\\(\\) is incompatible with type float\\.$#" - count: 1 - path: ../../../src/world/sound/FizzSound.php - - - - message: "#^Default value of the parameter \\#1 \\$pitch \\(int\\) of method pocketmine\\\\world\\\\sound\\\\LaunchSound\\:\\:__construct\\(\\) is incompatible with type float\\.$#" - count: 1 - path: ../../../src/world/sound/LaunchSound.php - - - - message: "#^Default value of the parameter \\#1 \\$pitch \\(int\\) of method pocketmine\\\\world\\\\sound\\\\PopSound\\:\\:__construct\\(\\) is incompatible with type float\\.$#" - count: 1 - path: ../../../src/world/sound/PopSound.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertNotNull\\(\\) with int and string will always evaluate to true\\.$#" count: 1