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
Code exemplifying the issue: https://psalm.dev/r/600aad3b9e
Works with array shapes: https://psalm.dev/r/ae6c3fa3c0
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php /** * @psalm-type CallableShape = object{ * foo : string, * bar : callable(): int, * } * * @psalm-suppress MissingConstructor */ class Test { /** @var CallableShape */ public $foo; } $t = new Test(); $t->foo->bar();
Psalm output (using commit 16b24bd): INFO: MixedMethodCall - 18:10 - Cannot determine the type of $t->foo when calling method bar
<?php /** * @psalm-type CallableShape = array{ * foo : string, * bar : callable(): int, * } * * @psalm-suppress MissingConstructor */ class Test { /** @var CallableShape */ public $foo; } $t = new Test(); $t->foo['bar']();
Psalm output (using commit 16b24bd): No issues!
Sorry, something went wrong.
No branches or pull requests
Code exemplifying the issue:
https://psalm.dev/r/600aad3b9e
Works with array shapes:
https://psalm.dev/r/ae6c3fa3c0
The text was updated successfully, but these errors were encountered: