mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 13:51:54 +01:00
Merge pull request #8114 from drealecs/fix_number_format_callmap
number_format: allow third and forth parameters to be nullable
This commit is contained in:
commit
ad46fc0f92
@ -9027,7 +9027,7 @@ return [
|
|||||||
'nsapi_response_headers' => ['array'],
|
'nsapi_response_headers' => ['array'],
|
||||||
'nsapi_virtual' => ['bool', 'uri'=>'string'],
|
'nsapi_virtual' => ['bool', 'uri'=>'string'],
|
||||||
'nthmac' => ['string', 'clent'=>'string', 'data'=>'string'],
|
'nthmac' => ['string', 'clent'=>'string', 'data'=>'string'],
|
||||||
'number_format' => ['string', 'num'=>'float|int', 'decimals='=>'int', 'decimal_separator='=>'string', 'thousands_separator='=>'string'],
|
'number_format' => ['string', 'num'=>'float|int', 'decimals='=>'int', 'decimal_separator='=>'?string', 'thousands_separator='=>'?string'],
|
||||||
'NumberFormatter::__construct' => ['void', 'locale'=>'string', 'style'=>'int', 'pattern='=>'string'],
|
'NumberFormatter::__construct' => ['void', 'locale'=>'string', 'style'=>'int', 'pattern='=>'string'],
|
||||||
'NumberFormatter::create' => ['NumberFormatter|false', 'locale'=>'string', 'style'=>'int', 'pattern='=>'string'],
|
'NumberFormatter::create' => ['NumberFormatter|false', 'locale'=>'string', 'style'=>'int', 'pattern='=>'string'],
|
||||||
'NumberFormatter::format' => ['string|false', 'num'=>'', 'type='=>'int'],
|
'NumberFormatter::format' => ['string|false', 'num'=>'', 'type='=>'int'],
|
||||||
|
@ -967,7 +967,7 @@ return [
|
|||||||
],
|
],
|
||||||
'number_format' => [
|
'number_format' => [
|
||||||
'old' => ['string', 'num'=>'float|int', 'decimals='=>'int'],
|
'old' => ['string', 'num'=>'float|int', 'decimals='=>'int'],
|
||||||
'new' => ['string', 'num'=>'float|int', 'decimals='=>'int', 'decimal_separator='=>'string', 'thousands_separator='=>'string'],
|
'new' => ['string', 'num'=>'float|int', 'decimals='=>'int', 'decimal_separator='=>'?string', 'thousands_separator='=>'?string'],
|
||||||
],
|
],
|
||||||
'ob_implicit_flush' => [
|
'ob_implicit_flush' => [
|
||||||
'old' => ['void', 'enable='=>'int'],
|
'old' => ['void', 'enable='=>'int'],
|
||||||
@ -1615,7 +1615,7 @@ return [
|
|||||||
'image2wbmp' => ['bool', 'im'=>'resource', 'filename='=>'?string', 'threshold='=>'int'],
|
'image2wbmp' => ['bool', 'im'=>'resource', 'filename='=>'?string', 'threshold='=>'int'],
|
||||||
'jpeg2wbmp' => ['bool', 'jpegname'=>'string', 'wbmpname'=>'string', 'dest_height'=>'int', 'dest_width'=>'int', 'threshold'=>'int'],
|
'jpeg2wbmp' => ['bool', 'jpegname'=>'string', 'wbmpname'=>'string', 'dest_height'=>'int', 'dest_width'=>'int', 'threshold'=>'int'],
|
||||||
'ldap_sort' => ['bool', 'link_identifier'=>'resource', 'result_identifier'=>'resource', 'sortfilter'=>'string'],
|
'ldap_sort' => ['bool', 'link_identifier'=>'resource', 'result_identifier'=>'resource', 'sortfilter'=>'string'],
|
||||||
'number_format\'1' => ['string', 'num'=>'float|int', 'decimals'=>'int', 'decimal_separator'=>'string', 'thousands_separator'=>'string'],
|
'number_format\'1' => ['string', 'num'=>'float|int', 'decimals'=>'int', 'decimal_separator'=>'?string', 'thousands_separator'=>'?string'],
|
||||||
'png2wbmp' => ['bool', 'pngname'=>'string', 'wbmpname'=>'string', 'dest_height'=>'int', 'dest_width'=>'int', 'threshold'=>'int'],
|
'png2wbmp' => ['bool', 'pngname'=>'string', 'wbmpname'=>'string', 'dest_height'=>'int', 'dest_width'=>'int', 'threshold'=>'int'],
|
||||||
'read_exif_data' => ['array', 'filename'=>'string', 'sections_needed='=>'string', 'sub_arrays='=>'bool', 'read_thumbnail='=>'bool'],
|
'read_exif_data' => ['array', 'filename'=>'string', 'sections_needed='=>'string', 'sub_arrays='=>'bool', 'read_thumbnail='=>'bool'],
|
||||||
'SimpleXMLIterator::rewind' => ['void'],
|
'SimpleXMLIterator::rewind' => ['void'],
|
||||||
|
@ -13897,7 +13897,7 @@ return [
|
|||||||
'nsapi_virtual' => ['bool', 'uri'=>'string'],
|
'nsapi_virtual' => ['bool', 'uri'=>'string'],
|
||||||
'nthmac' => ['string', 'clent'=>'string', 'data'=>'string'],
|
'nthmac' => ['string', 'clent'=>'string', 'data'=>'string'],
|
||||||
'number_format' => ['string', 'num'=>'float|int', 'decimals='=>'int'],
|
'number_format' => ['string', 'num'=>'float|int', 'decimals='=>'int'],
|
||||||
'number_format\'1' => ['string', 'num'=>'float|int', 'decimals'=>'int', 'decimal_separator'=>'string', 'thousands_separator'=>'string'],
|
'number_format\'1' => ['string', 'num'=>'float|int', 'decimals'=>'int', 'decimal_separator'=>'?string', 'thousands_separator'=>'?string'],
|
||||||
'numfmt_create' => ['NumberFormatter|false', 'locale'=>'string', 'style'=>'int', 'pattern='=>'string'],
|
'numfmt_create' => ['NumberFormatter|false', 'locale'=>'string', 'style'=>'int', 'pattern='=>'string'],
|
||||||
'numfmt_format' => ['string|false', 'formatter'=>'NumberFormatter', 'num'=>'int|float', 'type='=>'int'],
|
'numfmt_format' => ['string|false', 'formatter'=>'NumberFormatter', 'num'=>'int|float', 'type='=>'int'],
|
||||||
'numfmt_format_currency' => ['string|false', 'formatter'=>'NumberFormatter', 'amount'=>'float', 'currency'=>'string'],
|
'numfmt_format_currency' => ['string|false', 'formatter'=>'NumberFormatter', 'amount'=>'float', 'currency'=>'string'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user