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
https://psalm.dev/r/7bed033139
Uncaught RuntimeException: PHP Error: Undefined array key 0 in ./vendor/vimeo/psalm/src/Psalm/Internal/Type/TemplateStandinTypeReplacer.php:1171
psalm/src/Psalm/Internal/Type/TemplateStandinTypeReplacer.php
Lines 1170 to 1174 in 0294324
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php enum EnumA: string { case FOO = 'foo'; case BAR = 'bar'; } /** * @template T of EnumA */ class C { /** * @var T */ private $data; /** * @param T $data */ public function __construct($data) { $this->data = $data; } /** * @psalm-if-this-is self<EnumA::FOO> * * @return void */ public function doSomething() { /** @var self<EnumA::FOO> $this */ $this->data = EnumA::FOO; // just somthing random to show psalm crashes rgahatrhagfhaf } }
Psalm output (using commit 16b24bd): ERROR: ParseError - 32:5 - Syntax error, unexpected '}' on line 32 ERROR: UndefinedConstant - 31:9 - Const rgahatrhagfhaf is not defined
Sorry, something went wrong.
psalm-github-bot doesn't show the real output. Currently it crashes even in psalm.dev.
psalm-github-bot
No branches or pull requests
https://psalm.dev/r/7bed033139
psalm/src/Psalm/Internal/Type/TemplateStandinTypeReplacer.php
Lines 1170 to 1174 in 0294324
The text was updated successfully, but these errors were encountered: