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
See https://psalm.dev/r/f65db47829
I am not sure if this would be correct report for other attributes, but the \Override one should not trigger the error.
\Override
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php class base { /** * @psalm-pure */ public function test(): void {} } class extending extends base { /** * @psalm-pure */ #[\Override] public function test(): void {} }
Psalm output (using commit c488d40): ERROR: ImpureMethodCall - 15:7 - Cannot call an impure constructor from a pure context
Sorry, something went wrong.
Override
Allow Override attribute to be used in pure contexts
3cd9658
Fixes vimeo#10731
Successfully merging a pull request may close this issue.
See https://psalm.dev/r/f65db47829
I am not sure if this would be correct report for other attributes, but the
\Override
one should not trigger the error.The text was updated successfully, but these errors were encountered: