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

Support constant string/int as template bound #1402

Merged
merged 1 commit into from Jun 7, 2022

Conversation

rvanvelzen
Copy link
Contributor

Fixes phpstan/phpstan#7381. In general constant string/int bounds don't make much sense, but they can appear when key-of<T> is resolved.

@Seldaek
Copy link
Contributor

Seldaek commented Jun 7, 2022

Thanks!

@ondrejmirtes ondrejmirtes merged commit 6fe8a46 into phpstan:1.7.x Jun 7, 2022
@ondrejmirtes
Copy link
Member

Perfect, thank you!

@rvanvelzen rvanvelzen deleted the bug-7381 branch June 13, 2022 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants