Parameter #3 $mode of function round expects 1|2|3|4, int given. #6972
-
|
I have a Since migrating PHPStan from 1.4.10 to 1.5.3, I'm getting the inspection :
I've tried adding a PHPDoc Any idea ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
As far as I know, it's not possible to use global constants in this manner, only class constants. You could add a class constant for each of the global constants and then type those: https://phpstan.org/r/afa1ccb9-559c-4dde-8de1-c08fd27c78c7 |
Beta Was this translation helpful? Give feedback.
As far as I know, it's not possible to use global constants in this manner, only class constants. You could add a class constant for each of the global constants and then type those: https://phpstan.org/r/afa1ccb9-559c-4dde-8de1-c08fd27c78c7