phpstan: add LevelDB::get() stub to fix return type

This commit is contained in:
Dylan K. Taylor 2020-06-10 10:31:54 +01:00
parent 1bbeb62457
commit 42613618a5
2 changed files with 12 additions and 0 deletions

View File

@ -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$#"

View 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 = []){}
}