diff --git a/src/PhpSpreadsheet/CachedObjectStorage/CacheBase.php b/src/PhpSpreadsheet/CachedObjectStorage/CacheBase.php index 1dfad8a9..c5bc2291 100644 --- a/src/PhpSpreadsheet/CachedObjectStorage/CacheBase.php +++ b/src/PhpSpreadsheet/CachedObjectStorage/CacheBase.php @@ -147,8 +147,8 @@ abstract class CacheBase if (is_object($this->cellCache[$pCoord])) { $this->cellCache[$pCoord]->detach(); - unset($this->cellCache[$pCoord]); } + unset($this->cellCache[$pCoord]); $this->currentCellIsDirty = false; }