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
The callable-array type doesn't appear to be correctly treated as an array.
callable-array
https://psalm.dev/r/cfc2aac7c2
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php function getCallable(): callable { return [DateTimeImmutable::class, 'createFromFormat']; } $callable = getCallable(); if (!is_array($callable)) { exit; } [$classOrObject, $method] = $callable;
Psalm output (using commit c50fa27): ERROR: InvalidArrayOffset - 13:1 - Cannot destructure non-array of type callable-array{0: class-string|object, 1: string} INFO: UnusedVariable - 13:2 - Variable $classOrObject is never referenced INFO: UnusedVariable - 13:18 - Variable $method is never referenced
Sorry, something went wrong.
2c48d42
No branches or pull requests
The
callable-array
type doesn't appear to be correctly treated as an array.https://psalm.dev/r/cfc2aac7c2
The text was updated successfully, but these errors were encountered: