Skip to content

Commit 195bb00

Browse files
BackEndTeaondrejmirtes
authored andcommitted
Fix bcdiv return
It will return null if the div is 0
1 parent 14f702d commit 195bb00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Reflection/SignatureMap/functionMap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@
421421
'bbcode_set_flags' => ['bool', 'bbcode_container'=>'resource', 'flags'=>'int', 'mode='=>'int'],
422422
'bcadd' => ['string', 'left_operand'=>'string', 'right_operand'=>'string', 'scale='=>'int'],
423423
'bccomp' => ['int', 'left_operand'=>'string', 'right_operand'=>'string', 'scale='=>'int'],
424-
'bcdiv' => ['string', 'left_operand'=>'string', 'right_operand'=>'string', 'scale='=>'int'],
424+
'bcdiv' => ['string|null', 'left_operand'=>'string', 'right_operand'=>'string', 'scale='=>'int'],
425425
'bcmod' => ['string', 'left_operand'=>'string', 'right_operand'=>'string', 'scale='=>'int'],
426426
'bcmul' => ['string', 'left_operand'=>'string', 'right_operand'=>'string', 'scale='=>'int'],
427427
'bcompiler_load' => ['bool', 'filename'=>'string'],

0 commit comments

Comments
 (0)