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
See https://psalm.dev/r/4dc3c5409a
This might have to do with #6197 and the linked PR #6204
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php namespace NamespaceOne { use Attribute; #[Attribute(Attribute::TARGET_CLASS)] class FooAttribute { /** @var class-string */ private string $className; /** * @param class-string<FoobarInterface> $className */ public function __construct(string $className) { $this->className = $className; } } interface FoobarInterface {} class Bar implements FoobarInterface {} } namespace NamespaceTwo { use NamespaceOne\FooAttribute; use NamespaceOne\Bar; #[FooAttribute(className: Bar::class)] class Baz {} }
Psalm output (using commit 7e137f5): ERROR: InvalidArgument - 30:28 - Argument 1 of NamespaceOne\FooAttribute::__construct expects class-string<NamespaceOne\FoobarInterface>, NamespaceTwo\NamespaceOne\Bar::class provided
Sorry, something went wrong.
Use fully-qualified name for virtual class strings
e4ead74
Fixes vimeo#6211
Successfully merging a pull request may close this issue.
See https://psalm.dev/r/4dc3c5409a
This might have to do with #6197 and the linked PR #6204
The text was updated successfully, but these errors were encountered: