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

fix: add missing method setCallbackWrapper #841

Merged
merged 6 commits into from
Jul 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: add missing phpstan arguments
  • Loading branch information
shakaran committed May 3, 2024
commit 828457de1d81cc9ddf90902d25d538feec375f3e
5 changes: 3 additions & 2 deletions src/Tracing/Cache/TraceableCacheAdapterTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,14 @@
* @phpstan-template TResult
*
* @phpstan-param \Closure(): TResult $callback
* @phpstan-param string $key
*
* @phpstan-return TResult
* @phpstan-return callable(): CacheItem
*/
private function setCallbackWrapper(callable $callback, string $key): callable

Check warning on line 202 in src/Tracing/Cache/TraceableCacheAdapterTrait.php

View check run for this annotation

Codecov / codecov/patch

src/Tracing/Cache/TraceableCacheAdapterTrait.php#L202

Added line #L202 was not covered by tests
{
return function () use ($callback, $key) {
return function () use ($callback, $key): CacheItem {
return $callback($this->decoratedAdapter->getItem($key));

Check failure on line 205 in src/Tracing/Cache/TraceableCacheAdapterTrait.php

View workflow job for this annotation

GitHub Actions / Psalm

TooManyArguments

src/Tracing/Cache/TraceableCacheAdapterTrait.php:205:20: TooManyArguments: Too many arguments for - expecting 0 but saw 1 (see https://psalm.dev/026)
};

Check warning on line 206 in src/Tracing/Cache/TraceableCacheAdapterTrait.php

View check run for this annotation

Codecov / codecov/patch

src/Tracing/Cache/TraceableCacheAdapterTrait.php#L204-L206

Added lines #L204 - L206 were not covered by tests
}
}
Loading