Conditions | 3 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function __invoke(string $key, mixed $value, CacheItemPoolInterface $pool, array $tags, int|null $ttl): bool |
||
16 | { |
||
17 | $cacheItem = $pool->getItem($key); |
||
18 | $cacheItem->set($value); |
||
19 | assert($cacheItem instanceof CacheItem); |
||
20 | $cacheItem->tag($tags); |
||
21 | |||
22 | if ($ttl !== null && $ttl > 0) { |
||
23 | $cacheItem->expiresAfter($ttl); |
||
24 | } |
||
25 | |||
26 | return $pool->save($cacheItem); |
||
27 | } |
||
29 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths