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
I expected the below to typecheck but it errors
https://psalm.dev/r/5428c288c8
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php class Item {} interface HasAncestor {} class TestItem1 extends Item implements HasAncestor {} /** * @param pure-Closure(HasAncestor&Item): true $fn */ function takesClosure(Closure $fn) : void { $item = new TestItem1(); $fn($item); } takesClosure(fn(TestItem1 $item) => !!$item);
Psalm output (using commit 16b24bd): ERROR: ArgumentTypeCoercion - 17:14 - Argument 1 of takesClosure expects pure-Closure(HasAncestor&Item):true, but parent type pure-Closure(TestItem1):true provided
Sorry, something went wrong.
No branches or pull requests
I expected the below to typecheck but it errors
https://psalm.dev/r/5428c288c8
The text was updated successfully, but these errors were encountered: