We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://psalm.dev/r/74c88421fe
The return values in constructors cannot be used (unless ->__construct() which isn't really a good idea), therefore psalm should report those
->__construct()
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php class Foo { public function __construct() { return true; } }
Psalm output (using commit 1a43956): No issues!
Sorry, something went wrong.
Forbid constructors from returning any values
6b40593
Fixes vimeo#9713
Successfully merging a pull request may close this issue.
https://psalm.dev/r/74c88421fe
The return values in constructors cannot be used (unless
->__construct()
which isn't really a good idea), therefore psalm should report thoseThe text was updated successfully, but these errors were encountered: