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/eddc5cd072
The text was updated successfully, but these errors were encountered:
55c2f7f
@muglug , it seems the problem still occurs in the class. https://psalm.dev/r/c7bba7e45e
Sorry, something went wrong.
I found these snippets:
<?php class A { /** * @template T of object * @psalm-param array<T> $collection * @psalm-param callable(T, T): int $sorter * @psalm-return array<T> */ public function order(array $collection, callable $sorter): array { usort($collection, $sorter); return $collection; } }
Psalm output (using commit 508c2e2): ERROR: InvalidScalarArgument - 13:22 - Argument 2 of usort expects callable(object, object):int, callable(T:fn-a::order as object, T:fn-a::order as object):int provided
No branches or pull requests
https://psalm.dev/r/eddc5cd072
The text was updated successfully, but these errors were encountered: