-
-
Notifications
You must be signed in to change notification settings - Fork 868
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
double not recognised as as an alias of native float type from phpdoc blocks #214
Comments
Hi, thanks for the report. I agree, I'll add it. If you want to, feel free to send a PR. It needs to be added here: https://github.com/phpstan/phpstan/blob/master/src/Type/TypehintHelper.php#L62 (and increase cache version in FileTypeMapper.php). |
Work schedule is a bit crammed at the moment, I'm afraid. |
Ok, I'll look into it. You can always vote with your money if you want the work done on your behalf 😊 I'd really appreciate your support. |
Support for |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I've got phpstan running checks on some code that uses the paypal php SDK & I'm getting what I think is an error that shouldn't be an error:
(double) seems to be valid as a typecast, and
is_double()
is an alias ofis_float()
, so one would hope that this should be recognised as an alias of the system typefloat
.lib/PayPal/Api/Amount.php
composer.lock snippet for the specific version:
The text was updated successfully, but these errors were encountered: