You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since upgrading to v5.2.1, Psalm seems to show these weird MismatchingDocblockParamType errors on my codes which have no docblock at all.
For example
$featureResult = $this->cache->get(
$key,
function (ItemInterface $item) use ($feature, $dataCache) {
$item->expiresAfter(Time::SIX_HOURS_IN_SECONDS);
return $this->compileFeatureResult($feature, $dataCache);
And I get:
Service.php:173:27: MismatchingDocblockParamType: Parameter $item has wrong type 'Psr\Cache\CacheItemInterface', should be 'Symfony\Contracts\Cache\ItemInterface' (see https://psalm.dev/141)
Even more odd that this only happens on a selected of files which use similar caching pattern, but not all of them.
Does anyone know what's the issue here?
The text was updated successfully, but these errors were encountered:
Hi,
Since upgrading to v5.2.1, Psalm seems to show these weird MismatchingDocblockParamType errors on my codes which have no docblock at all.
For example
And I get:
Even more odd that this only happens on a selected of files which use similar caching pattern, but not all of them.
Does anyone know what's the issue here?
The text was updated successfully, but these errors were encountered: