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

Check void functions result usage #188

Closed
quasilyte opened this issue Oct 3, 2019 · 0 comments · Fixed by #244
Closed

Check void functions result usage #188

quasilyte opened this issue Oct 3, 2019 · 0 comments · Fixed by #244

Comments

@quasilyte
Copy link
Contributor

Code Example

/** @return void */
function f() {}

$_ = f(); // Assigned void result.

Actual Behavior

No warnings.

Expected Behavior

Warning about void result usage.

Note: this is a harder part of #86, so we can implement it as independent patches.

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 a pull request may close this issue.

1 participant