Skip to content

Commit

Permalink
Add default cache result
Browse files Browse the repository at this point in the history
  • Loading branch information
jakublabno committed Apr 1, 2022
1 parent e2f6632 commit a3e4984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Scanner/CachedDoctrineAnnotationsScanner.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function scan(ScanMode $mode = null): ScanResult
$key = self::CACHE_KEY;

if ($this->cache->has($key)) {
return $this->cache->get($key);
return $this->cache->get($key, new ScanResult([]));
}

$paths = $this->nativeScanner->scan($mode);
Expand Down

0 comments on commit a3e4984

Please sign in to comment.