Skip to content

Commit 1990971

Browse files
committed
fix: update cache handling and parameter types
1 parent 810a774 commit 1990971

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Service/Inspector/Cache/BlockCacheCollector.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ private function isBlockScopePrivate(BlockInterface $block): bool
148148
return true;
149149
}
150150
} catch (\ReflectionException $e) {
151-
// If reflection fails, assume not private
151+
return false;
152152
}
153153
}
154154

@@ -236,8 +236,8 @@ private function isPageCacheable(): bool
236236
/**
237237
* Format metrics for JSON export to frontend
238238
*
239-
* @param array<string, mixed> $renderMetrics
240-
* @param array<string, mixed> $cacheMetrics
239+
* @param array $renderMetrics
240+
* @param array $cacheMetrics
241241
* @return array<string, mixed>
242242
* @phpstan-param RenderMetrics $renderMetrics
243243
* @phpstan-param CacheInfo $cacheMetrics

0 commit comments

Comments
 (0)