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/240410c30c
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php class Foo { /** @var array<string, class-string<self>> */ private static $classes; /** * @param class-string<self> $class */ public static function register(string $key, string $class): void { self::$classes[$key] = $class; } }
Psalm output (using commit 8926f1d): ERROR: InvalidPropertyAssignmentValue - 13:9 - Foo::$classes with declared type 'array<string, class-string<self>>' cannot be assigned type 'non-empty-array<string, class-string<Foo>|class-string<self>>'
Sorry, something went wrong.
3243819
No branches or pull requests
https://psalm.dev/r/240410c30c
The text was updated successfully, but these errors were encountered: