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

Update CacheInterface.stubphp #333

Merged
merged 3 commits into from
Jun 5, 2024
Merged

Update CacheInterface.stubphp #333

merged 3 commits into from
Jun 5, 2024

Conversation

michnovka
Copy link
Contributor

The param signature has been changed and hence getting this error:

ERROR: ArgumentTypeCoercion
Argument 2 of Symfony\Contracts\Cache\CacheInterface::get expects Symfony\Contracts\Cache\CallbackInterface|callable(Psr\Cache\CacheItemInterface, bool):float, but parent type impure-Closure(Symfony\Contracts\Cache\ItemInterface):float provided (see https://psalm.dev/193)

This fixes it.

@michnovka
Copy link
Contributor Author

Not sure what to do with the failing tests, they dont seem related to my code

Copy link
Member

@seferov seferov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@michnovka thank you

@seferov seferov merged commit 179db30 into psalm:5.x Jun 5, 2024
6 of 8 checks passed
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

Successfully merging this pull request may close these issues.

2 participants