psalm / psalm-plugin-symfony

Psalm Plugin for Symfony
MIT License
226 stars 53 forks source link

Update CacheInterface.stubphp #333

Closed michnovka closed 3 months ago

michnovka commented 6 months ago

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 commented 6 months ago

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