-
-
Notifications
You must be signed in to change notification settings - Fork 365
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
added $kind
param to TypeMapperInterface->mapToPHPStanPhpDocTypeNode()
#306
Conversation
which allows to differentiate the returned type based on the used location
if ($kind === 'return') { | ||
return new IdentifierTypeNode('never'); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line implements the actual motivation of this PR - everything else is just a mechanical change because the interface changed
After a few iterations I realized that a @TomasVotruba this PR is ready to review |
packages/PHPStanStaticTypeMapper/TypeMapper/NeverTypeMapper.php
Outdated
Show resolved
Hide resolved
@TomasVotruba this is ready for another round |
Thank you 👍 I was looking for a test for Lets ship it! |
yep, this is coming with #296 |
which allows to differentiate the returned type based on the used location.
this is required to add a proper
@return never
handling as we are building it in #296