Timezone: use false checks instead of file existing for static analysis

This commit is contained in:
Dylan K. Taylor
2020-04-15 10:55:26 +01:00
parent 83c40f4502
commit 5c9419b55c
2 changed files with 17 additions and 16 deletions

View File

@ -48,6 +48,12 @@ parameters:
count: 1
path: ../../../src/pocketmine/network/mcpe/protocol/DataPacket.php
-
#readlink() can return false but phpstan doesn't know this
message: "#^Strict comparison using \\!\\=\\= between string and false will always evaluate to true\\.$#"
count: 1
path: ../../../src/pocketmine/utils/Timezone.php
-
#phpstan doesn't understand that SplFixedArray may contain null
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertNotNull\\(\\) with int and string will always evaluate to true\\.$#"