mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-10 15:59:39 +00:00
phpstan: silence leveldb noise
maybe there's a better way to do this, but I don't know it yet.
This commit is contained in:
parent
714f4dc023
commit
c5d3e9be76
20
phpstan.neon
20
phpstan.neon
@ -4,7 +4,7 @@ parameters:
|
|||||||
level: 1
|
level: 1
|
||||||
paths:
|
paths:
|
||||||
- src
|
- src
|
||||||
#reportUnmatchedIgnoredErrors: false #no other way to silence platform-specific non-warnings
|
reportUnmatchedIgnoredErrors: false #no other way to silence platform-specific non-warnings
|
||||||
ignoreErrors:
|
ignoreErrors:
|
||||||
-
|
-
|
||||||
message: "#^pocketmine\\\\Player\\:\\:__construct\\(\\) does not call parent constructor from pocketmine\\\\entity\\\\Human\\.$#"
|
message: "#^pocketmine\\\\Player\\:\\:__construct\\(\\) does not call parent constructor from pocketmine\\\\entity\\\\Human\\.$#"
|
||||||
@ -156,3 +156,21 @@ parameters:
|
|||||||
-
|
-
|
||||||
message: "#^Constant pocketmine\\\\VERSION not found\\.$#"
|
message: "#^Constant pocketmine\\\\VERSION not found\\.$#"
|
||||||
path: src/pocketmine
|
path: src/pocketmine
|
||||||
|
-
|
||||||
|
message: "#^Used constant LEVELDB_ZLIB_RAW_COMPRESSION not found\\.$#"
|
||||||
|
path: src/pocketmine/level/format/io/leveldb/LevelDB.php
|
||||||
|
comment: "explicitly checked"
|
||||||
|
-
|
||||||
|
message: "#^Constant LEVELDB_ZLIB_RAW_COMPRESSION not found\\.$#"
|
||||||
|
path: src/pocketmine/level/format/io/leveldb/LevelDB.php
|
||||||
|
comment: "explicitly checked"
|
||||||
|
-
|
||||||
|
message: "#^Instantiated class LevelDB not found\\.$#"
|
||||||
|
path: src/pocketmine/level/format/io/leveldb/LevelDB.php
|
||||||
|
comment: "leveldb extension currently optional"
|
||||||
|
-
|
||||||
|
message: "#^Return typehint of method pocketmine\\\\level\\\\format\\\\io\\\\leveldb\\\\LevelDB\\:\\:createDB\\(\\) has invalid type LevelDB\\.$#"
|
||||||
|
path: src/pocketmine/level/format/io/leveldb/LevelDB.php
|
||||||
|
-
|
||||||
|
message: "#^Return typehint of method pocketmine\\\\level\\\\format\\\\io\\\\leveldb\\\\LevelDB\\:\\:getDatabase\\(\\) has invalid type LevelDB\\.$#"
|
||||||
|
path: src/pocketmine/level/format/io/leveldb/LevelDB.php
|
||||||
|
Loading…
x
Reference in New Issue
Block a user