From 31d87acc4048d5174c8be811c06ac335d858f2bd Mon Sep 17 00:00:00 2001 From: Mark Date: Mon, 26 Jan 2026 04:27:06 +0100 Subject: [PATCH 1/2] fix(view): use xxh64 for ViewCache key --- packages/view/src/ViewCache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/view/src/ViewCache.php b/packages/view/src/ViewCache.php index d83ebe1d3..fe0db3e46 100644 --- a/packages/view/src/ViewCache.php +++ b/packages/view/src/ViewCache.php @@ -36,7 +36,7 @@ public function clear(): void public function getCachedViewPath(string $path, Closure $compiledView): string { - $cacheKey = (string) crc32($path); + $cacheKey = hash('xxh64', $path); $cacheItem = $this->pool->getItem($cacheKey); From b68778aa4ba1f1728508ad3a3bf3cd5210bff98d Mon Sep 17 00:00:00 2001 From: Mark Date: Mon, 26 Jan 2026 04:27:06 +0100 Subject: [PATCH 2/2] fix(discovery): use xxh64 for DiscoveryLocation key --- packages/discovery/src/DiscoveryLocation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/discovery/src/DiscoveryLocation.php b/packages/discovery/src/DiscoveryLocation.php index 2faa50042..13dd3c8b3 100644 --- a/packages/discovery/src/DiscoveryLocation.php +++ b/packages/discovery/src/DiscoveryLocation.php @@ -13,7 +13,7 @@ final class DiscoveryLocation public readonly string $path; public string $key { - get => (string) crc32($this->path); + get => hash('xxh64', $this->path); } public function __construct(