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
Similar to #9708, https://psalm.dev/r/3ad2966caa
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php class a { public ?int $_id = null; /** * @psalm-mutation-free * * @psalm-assert !null $this->_id * * @return int */ public function getIdAssert(): int { $id = $this->_id; assert($id !== null); return $id; } public function t(): void { self::test($this->getIdAssert()); } public function test(int $a): void {} }
Psalm output (using commit c059388): ERROR: RedundantConditionGivenDocblockType - 18:27 - Docblock-defined type int for $this->_id is never null
Sorry, something went wrong.
No branches or pull requests
Similar to #9708, https://psalm.dev/r/3ad2966caa
The text was updated successfully, but these errors were encountered: