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
add numeric-string type #3161
Comments
also ran over this. our real-world use-case is in the db abstraction layer.. pdo - when not configured properly - return every value as a string, no matter we already know it can only be an int |
@clxmstaab Can you post an example on phpstan.org? |
pdo returns always https://stackoverflow.com/a/20123337 so my use-case is:
|
hello Handsome guy |
Implemented: phpstan/phpstan-src@1d27c61 |
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. |
Feature request
I found that phpstan doesn't understand psalms numeric-string type (see https://psalm.dev/docs/annotating_code/type_syntax/scalar_types/#numeric-string)
It would be nice to support it.
here is playground link
https://phpstan.org/r/9e26dfae-706f-4e3a-bcfe-8a5ba327e393
also there are psalm one (with some errors on psalms side)
https://psalm.dev/r/d1a036f1f4
The text was updated successfully, but these errors were encountered: