From 9f918a8314fbc14257e348d02ef1bcab36925fef Mon Sep 17 00:00:00 2001 From: orklah Date: Mon, 29 Nov 2021 21:16:51 +0100 Subject: [PATCH] refine abs return type --- dictionaries/CallMap.php | 2 +- dictionaries/CallMap_historical.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dictionaries/CallMap.php b/dictionaries/CallMap.php index e2bb11104..6585a2866 100644 --- a/dictionaries/CallMap.php +++ b/dictionaries/CallMap.php @@ -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'], diff --git a/dictionaries/CallMap_historical.php b/dictionaries/CallMap_historical.php index 726ba7290..4aa2ae828 100644 --- a/dictionaries/CallMap_historical.php +++ b/dictionaries/CallMap_historical.php @@ -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'],