Replies: 1 comment
-
Please add an entry to https://github.com/phpstan/phpstan-src/blob/2.1.x/resources/functionMap_php84delta.php similar to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Looking at this example, phpstan correctly knows that
bcadd
will return anumeric-string
(if given one).But it does not do this for
bcround
.https://phpstan.org/r/7155fd9d-b410-4ad5-883a-cd4c6af18ffc
I'd like to understand in which cases bcround can return non-numeric strings. According to php.net it "Returns a numeric string representing num rounded to the given precision.".
Beta Was this translation helpful? Give feedback.
All reactions