Skip to content
New issue

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

Unable to resolve the template type CallbackInput in call to method PHPUnit\Framework\Assert::callback() #90

Closed
pascaldevink opened this issue Feb 4, 2021 · 3 comments

Comments

@pascaldevink
Copy link

In the latest release of PHPUnit (9.5.2) the Assert::callback() method has gotten some psalm definitions, see sebastianbergmann/phpunit@eee79a1

This triggers the following error:

 Unable to resolve the template type CallbackInput in call to method static method PHPUnit\Framework\Assert::callback()

I didn't even know PHPStan was reading them, and I guess it's not normally a problem.
However, in this case a CallbackInput generic type is used, which I think points back to PHPUnit\Framework\Constraint::Callback, and that is not properly picked up.

I don't know if this is a phpstan-phpunit or phpstan in general issue, but I thought it best to start here.

@ondrejmirtes
Copy link
Member

This is already fixed in PHPUnit, wait for a release sebastianbergmann/phpunit#4598

@pascaldevink
Copy link
Author

Thanks, I completely missed that 😅

@github-actions
Copy link

github-actions bot commented May 1, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants