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
repro: https://psalm.dev/r/db8a695a2d and https://psalm.dev/r/ed1b1e4cfb
I expect no Psalm issue reported.
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php class BigIntType { /** * @template T * @param T $value * @return (T is null ? null : int|string) */ public function convertToPHPValue(mixed $value): int|string|null { if ($value === null || is_int($value)) { return $value; } assert(is_string($value)); // remove decimals $dotPos = strpos($value, '.'); if ($dotPos !== false) { $value = substr($value, 0, $dotPos); } return $value; } }
Psalm output (using commit 16b24bd): ERROR: NoValue - 21:29 - All possible types for this argument were invalidated - This may be dead code
Sorry, something went wrong.
assert
Does anyone has an idea what is going on and how to fix it?
No branches or pull requests
repro: https://psalm.dev/r/db8a695a2d and https://psalm.dev/r/ed1b1e4cfb
I expect no Psalm issue reported.
The text was updated successfully, but these errors were encountered: