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

Improve return type of token_name() and PhpToken::getTokenName() #3558

Merged

Conversation

zonuexe
Copy link
Contributor

@zonuexe zonuexe commented Oct 9, 2024

The return value of token_name() and PhpToken::getTokenName() is neither '' nor '0', so they can be typed more precisely.

refs phpstan/phpstan#11808, #3540

@ondrejmirtes ondrejmirtes merged commit 8dd41e9 into phpstan:1.12.x Oct 9, 2024
475 of 501 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants