mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
feat: Add Fiber stubs
Signed-off-by: Ishan Vyas <isvyas@gmail.com>
This commit is contained in:
parent
d40335ff37
commit
e917546801
@ -3374,6 +3374,19 @@ return [
|
||||
'func_num_args' => ['int'],
|
||||
'function_exists' => ['bool', 'function'=>'string'],
|
||||
'fwrite' => ['int|false', 'stream'=>'resource', 'data'=>'string', 'length='=>'int'],
|
||||
'Fiber::__construct' => ['void', 'callback'=>'callable'],
|
||||
'Fiber::start' => ['mixed', '...args'=>'mixed'],
|
||||
'Fiber::resume' => ['mixed', 'value='=>'null|mixed'],
|
||||
'Fiber::throw' => ['mixed', 'exception'=>'Throwable'],
|
||||
'Fiber::isStarted' => ['bool'],
|
||||
'Fiber::isSuspended' => ['bool'],
|
||||
'Fiber::isRunning' => ['bool'],
|
||||
'Fiber::isTerminated' => ['bool'],
|
||||
'Fiber::getReturn' => ['mixed'],
|
||||
'Fiber::getCurrent' => ['?self'],
|
||||
'Fiber::suspend' => ['mixed', 'value='=>'null|mixed'],
|
||||
'FiberError::__construct' => ['void'],
|
||||
'FiberExit::__construct' => ['void'],
|
||||
'gc_collect_cycles' => ['int'],
|
||||
'gc_disable' => ['void'],
|
||||
'gc_enable' => ['void'],
|
||||
|
@ -24,6 +24,19 @@ return [
|
||||
'mysqli_fetch_column' => ['null|int|float|string|false', 'result'=>'mysqli_result', 'column='=>'int'],
|
||||
'mysqli_result::fetch_column' => ['null|int|float|string|false', 'column='=>'int'],
|
||||
'CURLStringFile::__construct' => ['void', 'data'=>'string', 'postname'=>'string', 'mime='=>'string'],
|
||||
'Fiber::__construct' => ['void', 'callback'=>'callable'],
|
||||
'Fiber::start' => ['mixed', '...args'=>'mixed'],
|
||||
'Fiber::resume' => ['mixed', 'value='=>'null|mixed'],
|
||||
'Fiber::throw' => ['mixed', 'exception'=>'Throwable'],
|
||||
'Fiber::isStarted' => ['bool'],
|
||||
'Fiber::isSuspended' => ['bool'],
|
||||
'Fiber::isRunning' => ['bool'],
|
||||
'Fiber::isTerminated' => ['bool'],
|
||||
'Fiber::getReturn' => ['mixed'],
|
||||
'Fiber::getCurrent' => ['?self'],
|
||||
'Fiber::suspend' => ['mixed', 'value='=>'null|mixed'],
|
||||
'FiberError::__construct' => ['void'],
|
||||
'FiberExit::__construct' => ['void'],
|
||||
],
|
||||
|
||||
'changed' => [
|
||||
|
Loading…
x
Reference in New Issue
Block a user