fix: guard cache hit with instanceof to handle stale LocationResult entries

This commit is contained in:
Ovidiu U
2026-04-05 20:45:28 +01:00
parent a11f0ba186
commit eed6ef9c81

View File

@@ -28,7 +28,7 @@ class PostcodeService
$cached = Cache::get($cacheKey);
if ($cached !== null) {
if ($cached instanceof LocationResult) {
return $cached;
}