mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
phpstan: add LevelDB::get() stub to fix return type
This commit is contained in:
parent
1bbeb62457
commit
42613618a5
@ -32,6 +32,7 @@ parameters:
|
||||
stubFiles:
|
||||
- tests/phpstan/stubs/pthreads.stub
|
||||
- tests/phpstan/stubs/chunkutils.stub
|
||||
- tests/phpstan/stubs/leveldb.stub
|
||||
reportUnmatchedIgnoredErrors: false #no other way to silence platform-specific non-warnings
|
||||
staticReflectionClassNamePatterns:
|
||||
- "#^COM$#"
|
||||
|
11
tests/phpstan/stubs/leveldb.stub
Normal file
11
tests/phpstan/stubs/leveldb.stub
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
class LevelDB{
|
||||
/**
|
||||
* @param string $key
|
||||
* @param array<string, mixed> $read_options
|
||||
*
|
||||
* @return string|false
|
||||
*/
|
||||
public function get($key, array $read_options = []){}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user