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

Prevent NoValue when there is no phpdoc #7399

Merged
merged 1 commit into from
Jan 14, 2022
Merged

Conversation

orklah
Copy link
Collaborator

@orklah orklah commented Jan 14, 2022

#7326 was flawed. The implicit case was inferred to empty and prevented the NoValue for being thrown.

On Psalm 5, never and empty are the same so it broke. This will fix it. It suppresses NoValue inside an ArrowFunction when no return type is documented, so that possible implicit return of never are suppressed too

@orklah orklah added the release:fix The PR will be included in 'Fixes' section of the release notes label Jan 14, 2022
@orklah orklah merged commit 1f0d3de into vimeo:master Jan 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:fix The PR will be included in 'Fixes' section of the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant