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

refine abs return type

This commit is contained in:
orklah 2021-11-29 21:16:51 +01:00
parent 8bc71fcf85
commit 9f918a8314
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ namespace Phan\Language\Internal;
return [
'_' => ['string', 'message'=>'string'],
'__halt_compiler' => ['void'],
'abs' => ['int', 'num'=>'int'],
'abs' => ['0|positive-int', 'num'=>'int'],
'abs\'1' => ['float', 'num'=>'float'],
'abs\'2' => ['numeric', 'num'=>'numeric'],
'accelerator_get_configuration' => ['array'],

View File

@ -9427,7 +9427,7 @@ return [
'ZookeeperConfig::set' => ['void', 'members'=>'string', 'version='=>'int', 'stat='=>'array'],
'_' => ['string', 'message'=>'string'],
'__halt_compiler' => ['void'],
'abs' => ['int', 'num'=>'int'],
'abs' => ['0|positive-int', 'num'=>'int'],
'abs\'1' => ['float', 'num'=>'float'],
'abs\'2' => ['numeric', 'num'=>'numeric'],
'accelerator_get_configuration' => ['array'],