We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49d3254 commit 8f9b014Copy full SHA for 8f9b014
src/Utils/SerializationCache.php
@@ -287,7 +287,10 @@ private static function evictIfNeeded(): void
287
if (count(self::$cache) > self::$maxCacheSize) {
288
// Simple FIFO eviction
289
$key = array_key_first(self::$cache);
290
- if ($key !== null && is_string($key)) {
+ if ($key === null) {
291
+ return; // No key to evict
292
+ }
293
+ if (is_string($key)) {
294
self::remove($key);
295
}
296
0 commit comments