mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Fix signatures of gmstrftime and strftime
This commit is contained in:
parent
03aea28c73
commit
b44c16bc68
@ -4050,7 +4050,7 @@ return [
|
||||
'gmp_sub' => ['GMP', 'num1'=>'GMP|string|int', 'num2'=>'GMP|string|int'],
|
||||
'gmp_testbit' => ['bool', 'num'=>'GMP|string|int', 'index'=>'int'],
|
||||
'gmp_xor' => ['GMP', 'num1'=>'GMP|string|int', 'num2'=>'GMP|string|int'],
|
||||
'gmstrftime' => ['string', 'format'=>'string', 'timestamp='=>'int'],
|
||||
'gmstrftime' => ['string|false', 'format'=>'string', 'timestamp='=>'?int'],
|
||||
'gnupg::adddecryptkey' => ['bool', 'fingerprint'=>'string', 'passphrase'=>'string'],
|
||||
'gnupg::addencryptkey' => ['bool', 'fingerprint'=>'string'],
|
||||
'gnupg::addsignkey' => ['bool', 'fingerprint'=>'string', 'passphrase='=>'string'],
|
||||
@ -13838,7 +13838,7 @@ return [
|
||||
'streamWrapper::stream_write' => ['int', 'data'=>'string'],
|
||||
'streamWrapper::unlink' => ['bool', 'path'=>'string'],
|
||||
'streamWrapper::url_stat' => ['array', 'path'=>'string', 'flags'=>'int'],
|
||||
'strftime' => ['string', 'format'=>'string', 'timestamp='=>'int'],
|
||||
'strftime' => ['string|false', 'format'=>'string', 'timestamp='=>'?int'],
|
||||
'strip_tags' => ['string', 'string'=>'string', 'allowed_tags='=>'string'],
|
||||
'stripcslashes' => ['string', 'string'=>'string'],
|
||||
'stripos' => ['int|false', 'haystack'=>'string', 'needle'=>'string', 'offset='=>'int'],
|
||||
|
@ -313,6 +313,10 @@ return [
|
||||
'old' => ['GMP|false', 'n'=>'GMP|string|int', 'k'=>'int'],
|
||||
'new' => ['GMP', 'n'=>'GMP|string|int', 'k'=>'int'],
|
||||
],
|
||||
'gmstrftime' => [
|
||||
'old' => ['string|false', 'format'=>'string', 'timestamp='=>'int'],
|
||||
'new' => ['string|false', 'format'=>'string', 'timestamp='=>'?int'],
|
||||
],
|
||||
'hash_init' => [
|
||||
'old' => ['HashContext|false', 'algo'=>'string', 'flags='=>'int', 'key='=>'string'],
|
||||
'new' => ['HashContext', 'algo'=>'string', 'flags='=>'int', 'key='=>'string'],
|
||||
@ -1137,6 +1141,10 @@ return [
|
||||
'old' => ['string|false', 'haystack'=>'string', 'needle'=>'string|int', 'before_needle='=>'bool'],
|
||||
'new' => ['string|false', 'haystack'=>'string', 'needle'=>'string', 'before_needle='=>'bool'],
|
||||
],
|
||||
'strftime' => [
|
||||
'old' => ['string|false', 'format'=>'string', 'timestamp='=>'int'],
|
||||
'new' => ['string|false', 'format'=>'string', 'timestamp='=>'?int'],
|
||||
],
|
||||
'stripos' => [
|
||||
'old' => ['int|false', 'haystack'=>'string', 'needle'=>'string|int', 'offset='=>'int'],
|
||||
'new' => ['int|false', 'haystack'=>'string', 'needle'=>'string', 'offset='=>'int'],
|
||||
|
@ -11160,7 +11160,7 @@ return [
|
||||
'gmp_sub' => ['GMP', 'num1'=>'GMP|string|int', 'num2'=>'GMP|string|int'],
|
||||
'gmp_testbit' => ['bool', 'num'=>'GMP|string|int', 'index'=>'int'],
|
||||
'gmp_xor' => ['GMP', 'num1'=>'GMP|string|int', 'num2'=>'GMP|string|int'],
|
||||
'gmstrftime' => ['string', 'format'=>'string', 'timestamp='=>'int'],
|
||||
'gmstrftime' => ['string|false', 'format'=>'string', 'timestamp='=>'int'],
|
||||
'gnupg::adddecryptkey' => ['bool', 'fingerprint'=>'string', 'passphrase'=>'string'],
|
||||
'gnupg::addencryptkey' => ['bool', 'fingerprint'=>'string'],
|
||||
'gnupg::addsignkey' => ['bool', 'fingerprint'=>'string', 'passphrase='=>'string'],
|
||||
@ -15257,7 +15257,7 @@ return [
|
||||
'stream_wrapper_register' => ['bool', 'protocol'=>'string', 'class'=>'string', 'flags='=>'int'],
|
||||
'stream_wrapper_restore' => ['bool', 'protocol'=>'string'],
|
||||
'stream_wrapper_unregister' => ['bool', 'protocol'=>'string'],
|
||||
'strftime' => ['string', 'format'=>'string', 'timestamp='=>'int'],
|
||||
'strftime' => ['string|false', 'format'=>'string', 'timestamp='=>'int'],
|
||||
'strip_tags' => ['string', 'string'=>'string', 'allowed_tags='=>'string'],
|
||||
'stripcslashes' => ['string', 'string'=>'string'],
|
||||
'stripos' => ['int|false', 'haystack'=>'string', 'needle'=>'string|int', 'offset='=>'int'],
|
||||
|
Loading…
Reference in New Issue
Block a user