diff --git a/stubs/CoreGenericFunctions.phpstub b/stubs/CoreGenericFunctions.phpstub index 5e1a0ecd415..b1d188d9e6c 100644 --- a/stubs/CoreGenericFunctions.phpstub +++ b/stubs/CoreGenericFunctions.phpstub @@ -952,7 +952,7 @@ function realpath(string $path) {} * * @param numeric-string $left_operand * @param numeric-string $right_operand - * @return ($right_operand is "0" ? null : numeric-string) + * @return (PHP_MAJOR_VERSION is 8 ? numeric-string : ($right_operand is "0" ? null : numeric-string)) */ function bcdiv(string $left_operand, string $right_operand, int $scale = 0): ?string {}