1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Improve count_chars stub

This commit is contained in:
Kamil Tekiela 2021-12-04 20:56:17 +00:00
parent 14dcbc908a
commit b854f436ff
3 changed files with 28 additions and 4 deletions

View File

@ -1542,7 +1542,11 @@ return [
'Couchbase\zlibCompress' => ['string', 'data'=>'string'],
'Couchbase\zlibDecompress' => ['string', 'data'=>'string'],
'count' => ['int', 'value'=>'Countable|array|SimpleXMLElement|ResourceBundle', 'mode='=>'int'],
'count_chars' => ['array<int,int>|string', 'input'=>'string', 'mode='=>'int'],
'count_chars' => ['array<int,int>', 'input'=>'string', 'mode='=>'0'],
'count_chars\'1' => ['array<int,int>', 'input'=>'string', 'mode='=>'1'],
'count_chars\'2' => ['array<int,int>', 'input'=>'string', 'mode='=>'2'],
'count_chars\'3' => ['string', 'input'=>'string', 'mode='=>'3'],
'count_chars\'4' => ['string', 'input'=>'string', 'mode='=>'4'],
'Countable::count' => ['int'],
'crack_check' => ['bool', 'dictionary'=>'', 'password'=>'string'],
'crack_closedict' => ['bool', 'dictionary='=>'resource'],

View File

@ -174,8 +174,24 @@ return [
'new' => ['bool', 'typelib_name'=>'string', 'case_insensitive='=>'true'],
],
'count_chars' => [
'old' => ['array<int,int>|false|string', 'input'=>'string', 'mode='=>'int'],
'new' => ['array<int,int>|string', 'input'=>'string', 'mode='=>'int'],
'old' => ['array<int,int>|false', 'input'=>'string', 'mode='=>'0'],
'new' => ['array<int,int>', 'input'=>'string', 'mode='=>'0'],
],
'count_chars\'1' => [
'old' => ['array<int,int>|false', 'input'=>'string', 'mode='=>'1'],
'new' => ['array<int,int>', 'input'=>'string', 'mode='=>'1'],
],
'count_chars\'2' => [
'old' => ['array<int,int>|false', 'input'=>'string', 'mode='=>'2'],
'new' => ['array<int,int>', 'input'=>'string', 'mode='=>'2'],
],
'count_chars\'3' => [
'old' => ['string|false', 'input'=>'string', 'mode='=>'3'],
'new' => ['string', 'input'=>'string', 'mode='=>'3'],
],
'count_chars\'4' => [
'old' => ['string|false', 'input'=>'string', 'mode='=>'4'],
'new' => ['string', 'input'=>'string', 'mode='=>'4'],
],
'curl_close' => [
'old' => ['void', 'ch'=>'resource'],

View File

@ -10000,7 +10000,11 @@ return [
'cos' => ['float', 'num'=>'float'],
'cosh' => ['float', 'num'=>'float'],
'count' => ['int', 'value'=>'Countable|array|SimpleXMLElement|ResourceBundle', 'mode='=>'int'],
'count_chars' => ['array<int,int>|false|string', 'input'=>'string', 'mode='=>'int'],
'count_chars' => ['array<int,int>|false', 'input'=>'string', 'mode='=>'0'],
'count_chars\'1' => ['array<int,int>|false', 'input'=>'string', 'mode='=>'1'],
'count_chars\'2' => ['array<int,int>|false', 'input'=>'string', 'mode='=>'2'],
'count_chars\'3' => ['string|false', 'input'=>'string', 'mode='=>'3'],
'count_chars\'4' => ['string|false', 'input'=>'string', 'mode='=>'4'],
'crack_check' => ['bool', 'dictionary'=>'', 'password'=>'string'],
'crack_closedict' => ['bool', 'dictionary='=>'resource'],
'crack_getlastmessage' => ['string'],