mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 08:35:20 +00:00
phpstan: add LevelDB::get() stub to fix return type
This commit is contained in:
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 = []){}
|
||||
}
|
Reference in New Issue
Block a user