Skip to content

Commit d5b2c88

Browse files
staabmondrejmirtes
authored andcommitted
More precise abs() return-type
1 parent a62b71e commit d5b2c88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/functionMap.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@
5858
return [
5959
'_' => ['string', 'message'=>'string'],
6060
'__halt_compiler' => ['void'],
61-
'abs' => ['int', 'number'=>'int'],
61+
'abs' => ['0|positive-int', 'number'=>'int'],
6262
'abs\'1' => ['float', 'number'=>'float'],
63-
'abs\'2' => ['float|int', 'number'=>'string'],
63+
'abs\'2' => ['float|0|positive-int', 'number'=>'string'],
6464
'accelerator_get_configuration' => ['array'],
6565
'accelerator_get_scripts' => ['array'],
6666
'accelerator_get_status' => ['array', 'fetch_scripts'=>'bool'],

0 commit comments

Comments
 (0)