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

Fix count_chars stubs

This commit is contained in:
Kamil Tekiela 2021-12-07 21:31:05 +00:00
parent 0ca856b597
commit 88ce10b1dc
3 changed files with 8 additions and 26 deletions

View File

@ -1542,11 +1542,8 @@ 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>', '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'],
'count_chars' => ['array<int,int>', 'input'=>'string', 'mode='=>'0|1|2'],
'count_chars\'1' => ['string', 'input'=>'string', 'mode='=>'3|4'],
'Countable::count' => ['int'],
'crack_check' => ['bool', 'dictionary'=>'', 'password'=>'string'],
'crack_closedict' => ['bool', 'dictionary='=>'resource'],

View File

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

View File

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