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
The @psalm-mutation-free example in the documentation doesn't show any errors: https://psalm.dev/r/23642086f5
Git bisecting points to this commit as introducing the issue.
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php class D { private string $s; public function __construct(string $s) { $this->s = $s; } /** * @psalm-mutation-free */ public function getShort() : string { return substr($this->s, 0, 5); } /** * @psalm-mutation-free */ public function getShortMutating() : string { $this->s .= "hello"; // this is a bug return substr($this->s, 0, 5); } }
Psalm output (using commit ced2646): No issues!
Sorry, something went wrong.
3848fa6
@muglug It looks like the issue persists (haven't tested locally, but psalm.dev still shows no errors with the latest commit).
Detect concat operation on property
b1e583e
Ref #3870
That example should be caught too now, sorry
No branches or pull requests
The @psalm-mutation-free example in the documentation doesn't show any errors: https://psalm.dev/r/23642086f5
Git bisecting points to this commit as introducing the issue.
The text was updated successfully, but these errors were encountered: