mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Replace changes in the CallMap for stream_select by a stub.
This commit is contained in:
parent
9a95ba97e9
commit
0dc435409c
@ -13811,7 +13811,7 @@ return [
|
||||
'stream_notification_callback' => ['callback', 'notification_code'=>'int', 'severity'=>'int', 'message'=>'string', 'message_code'=>'int', 'bytes_transferred'=>'int', 'bytes_max'=>'int'],
|
||||
'stream_register_wrapper' => ['bool', 'protocol'=>'string', 'class'=>'string', 'flags='=>'int'],
|
||||
'stream_resolve_include_path' => ['string|false', 'filename'=>'string'],
|
||||
'stream_select' => ['int|false', '&rw_read'=>'?resource[]', '&rw_write'=>'?resource[]', '&rw_except'=>'?resource[]', 'seconds'=>'?int', 'microseconds='=>'?int'],
|
||||
'stream_select' => ['int|false', '&rw_read'=>'resource[]', '&rw_write'=>'?resource[]', '&rw_except'=>'?resource[]', 'seconds'=>'?int', 'microseconds='=>'?int'],
|
||||
'stream_set_blocking' => ['bool', 'stream'=>'resource', 'enable'=>'bool'],
|
||||
'stream_set_chunk_size' => ['int|false', 'stream'=>'resource', 'size'=>'int'],
|
||||
'stream_set_read_buffer' => ['int', 'stream'=>'resource', 'size'=>'int'],
|
||||
|
@ -15247,7 +15247,7 @@ return [
|
||||
'stream_notification_callback' => ['callback', 'notification_code'=>'int', 'severity'=>'int', 'message'=>'string', 'message_code'=>'int', 'bytes_transferred'=>'int', 'bytes_max'=>'int'],
|
||||
'stream_register_wrapper' => ['bool', 'protocol'=>'string', 'class'=>'string', 'flags='=>'int'],
|
||||
'stream_resolve_include_path' => ['string|false', 'filename'=>'string'],
|
||||
'stream_select' => ['int|false', '&rw_read'=>'?resource[]', '&rw_write'=>'?resource[]', '&rw_except'=>'?resource[]', 'seconds'=>'?int', 'microseconds='=>'?int'],
|
||||
'stream_select' => ['int|false', '&rw_read'=>'resource[]', '&rw_write'=>'?resource[]', '&rw_except'=>'?resource[]', 'seconds'=>'?int', 'microseconds='=>'?int'],
|
||||
'stream_set_blocking' => ['bool', 'stream'=>'resource', 'enable'=>'bool'],
|
||||
'stream_set_chunk_size' => ['int|false', 'stream'=>'resource', 'size'=>'int'],
|
||||
'stream_set_read_buffer' => ['int', 'stream'=>'resource', 'size'=>'int'],
|
||||
|
@ -1332,3 +1332,18 @@ function is_a($object_or_class, string $class, $allow_string = false): bool{}
|
||||
* @psalm-ignore-falsable-return
|
||||
*/
|
||||
function mb_convert_encoding(array|string $string, string $to_encoding, array|string|null $from_encoding = null): array|string|false{}
|
||||
|
||||
/**
|
||||
* @template TRead of null|array<array-key, resource>
|
||||
* @template TWrite of null|array<array-key, resource>
|
||||
* @template TExcept of null|array<array-key, resource>
|
||||
* @param TRead $read
|
||||
* @param TWrite $write
|
||||
* @param TExcept $except
|
||||
* @return false|int<0, max>
|
||||
* @param-out (TRead is null ? null : array<array-key, resource>) $read
|
||||
* @param-out (TWrite is null ? null : array<array-key, resource>) $write
|
||||
* @param-out (TExcept is null ? null : array<array-key, resource>) $except
|
||||
* @psalm-suppress ReferenceConstraintViolation
|
||||
*/
|
||||
function stream_select(null|array &$read, null|array &$write, null|array &$except, null|int $seconds, null|int $microseconds = null) : bool|int {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user