mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Fixed count
/sizeof
mismatches in callmaps
`sizeof` is an alias for `count`, so their signatures must always match.
This commit is contained in:
parent
aee3665014
commit
bf7e5a3f9b
@ -11334,7 +11334,7 @@ return [
|
||||
'SimpleXMLElement::xpath' => ['SimpleXMLElement[]|false', 'path'=>'string'],
|
||||
'sin' => ['float', 'num'=>'float'],
|
||||
'sinh' => ['float', 'num'=>'float'],
|
||||
'sizeof' => ['int', 'value'=>'Countable|array', 'mode='=>'int'],
|
||||
'sizeof' => ['int<0, max>', 'value'=>'Countable|array', 'mode='=>'int'],
|
||||
'sleep' => ['int', 'seconds'=>'0|positive-int'],
|
||||
'snmp2_get' => ['string|false', 'hostname'=>'string', 'community'=>'string', 'object_id'=>'string', 'timeout='=>'int', 'retries='=>'int'],
|
||||
'snmp2_getnext' => ['string|false', 'hostname'=>'string', 'community'=>'string', 'object_id'=>'string', 'timeout='=>'int', 'retries='=>'int'],
|
||||
|
@ -497,6 +497,10 @@ return [
|
||||
'old' => ['int<0, max>', 'value'=>'Countable|array|SimpleXMLElement', 'mode='=>'int'],
|
||||
'new' => ['int<0, max>', 'value'=>'Countable|array', 'mode='=>'int'],
|
||||
],
|
||||
'sizeof' => [
|
||||
'old' => ['int<0, max>', 'value'=>'Countable|array|SimpleXMLElement', 'mode='=>'int'],
|
||||
'new' => ['int<0, max>', 'value'=>'Countable|array', 'mode='=>'int'],
|
||||
],
|
||||
'count_chars' => [
|
||||
'old' => ['array<int,int>|false', 'input'=>'string', 'mode='=>'0|1|2'],
|
||||
'new' => ['array<int,int>', 'input'=>'string', 'mode='=>'0|1|2'],
|
||||
|
@ -14030,7 +14030,7 @@ return [
|
||||
'simplexml_load_string' => ['SimpleXMLElement|false', 'data'=>'string', 'class_name='=>'?string', 'options='=>'int', 'namespace_or_prefix='=>'string', 'is_prefix='=>'bool'],
|
||||
'sin' => ['float', 'num'=>'float'],
|
||||
'sinh' => ['float', 'num'=>'float'],
|
||||
'sizeof' => ['int', 'value'=>'Countable|array', 'mode='=>'int'],
|
||||
'sizeof' => ['int<0, max>', 'value'=>'Countable|array|SimpleXMLElement', 'mode='=>'int'],
|
||||
'sleep' => ['int|false', 'seconds'=>'0|positive-int'],
|
||||
'snmp2_get' => ['string|false', 'hostname'=>'string', 'community'=>'string', 'object_id'=>'string', 'timeout='=>'int', 'retries='=>'int'],
|
||||
'snmp2_getnext' => ['string|false', 'hostname'=>'string', 'community'=>'string', 'object_id'=>'string', 'timeout='=>'int', 'retries='=>'int'],
|
||||
|
Loading…
Reference in New Issue
Block a user