Skip to content
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

numeric-string should be implied when a string is simplified #10572

Closed
mvorisek opened this issue Feb 13, 2024 · 1 comment · Fixed by phpstan/phpstan-src#2914
Closed

numeric-string should be implied when a string is simplified #10572

mvorisek opened this issue Feb 13, 2024 · 1 comment · Fixed by phpstan/phpstan-src#2914

Comments

@mvorisek
Copy link
Contributor

mvorisek commented Feb 13, 2024

Feature request

repro: https://phpstan.org/r/35eab3db-df1b-4df2-bc3f-9988c83d5b4a

expected output:

-actual
+expected
 Line	Error
 8	Dumped type: 'aaaaa...'
 9	Dumped type: false
 12	Dumped type: '00000...'
 13	Dumped type: true
 16	Dumped type: literal-string&non-falsy-string
 17	Dumped type: bool
-20	Dumped type: literal-string&non-empty-string
-21	Dumped type: bool
+20	Dumped type: literal-string&non-empty-string&numeric-string
+21	Dumped type: true
Copy link

github-actions bot commented Jul 1, 2024

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants