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

Mockery::spy(function) should be callable #34

Open
LastDragon-ru opened this issue Aug 8, 2021 · 1 comment
Open

Mockery::spy(function) should be callable #34

LastDragon-ru opened this issue Aug 8, 2021 · 1 comment

Comments

@LastDragon-ru
Copy link

https://phpstan.org/r/4d0416f7-0b46-471e-b961-a685a5fab277

Current versions report an error

Parameter #1 $callback of static method Closure::fromCallable() expects callable(): mixed, Mockery\MockInterface given.
@ondrejmirtes
Copy link
Member

Can be solved with a dynamic return type extension: https://phpstan.org/developing-extensions/dynamic-return-type-extensions

Feel free to contribute it :)

LastDragon-ru added a commit to LastDragon-ru/lara-asp that referenced this issue Mar 21, 2024
LastDragon-ru added a commit to LastDragon-ru/lara-asp-testing that referenced this issue Mar 21, 2024
LastDragon-ru added a commit to LastDragon-ru/lara-asp that referenced this issue Mar 21, 2024
LastDragon-ru added a commit to LastDragon-ru/lara-asp-testing that referenced this issue Mar 21, 2024
LastDragon-ru added a commit to LastDragon-ru/lara-asp that referenced this issue Mar 21, 2024
LastDragon-ru added a commit to LastDragon-ru/lara-asp-testing that referenced this issue Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants