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
$this
https://psalm.dev/r/c389a23983
class Foo { protected string $var = ''; /** * @return ($var is null ? string : $this) */ public function bar(?string $var = null): static|string { if ($var === null) { return $this->var; } $this->var = $var; return $this; } /** * @return $this */ public function baz(): static { return $this; } }
ERROR: [InvalidDocblock](https://psalm.dev/008) - 9:5 - Unexpected space in docblock for Foo::bar
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php class Foo { protected string $var = ''; /** * @return ($var is null ? string : $this) */ public function bar(?string $var = null): static|string { if ($var === null) { return $this->var; } $this->var = $var; return $this; } /** * @return $this */ public function baz(): static { return $this; } }
Psalm output (using commit c7c5a69): ERROR: InvalidDocblock - 9:5 - Unexpected space in docblock for Foo::bar
Sorry, something went wrong.
No branches or pull requests
https://psalm.dev/r/c389a23983
The text was updated successfully, but these errors were encountered: