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

Fix bcdiv nullable scale stub

This commit is contained in:
The Devick 2023-08-12 14:36:00 -03:00 committed by GitHub
parent a69eddda24
commit 313267082b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1359,9 +1359,10 @@ function realpath(string $path) {}
* *
* @param numeric-string $num1 * @param numeric-string $num1
* @param numeric-string $num2 * @param numeric-string $num2
* @param int|null $scale
* @return (PHP_MAJOR_VERSION is 8 ? numeric-string : ($num2 is "0" ? null : numeric-string)) * @return (PHP_MAJOR_VERSION is 8 ? numeric-string : ($num2 is "0" ? null : numeric-string))
*/ */
function bcdiv(string $num1, string $num2, int $scale = 0): ?string {} function bcdiv(string $num1, string $num2, ?int $scale = null): ?string {}
/** /**
* @psalm-pure * @psalm-pure