Skip to content

Commit c6b095b

Browse files
joseclJose Rodriguez
and
Jose Rodriguez
authored
Reduces extra memory usage on __destruct() calls (#3094)
* fix: Reduces memory usage on __destruct() call * docs: CHANGELOG.md Co-authored-by: Jose Rodriguez <[email protected]>
1 parent 6669588 commit c6b095b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org).
2525

2626
### Fixed
2727

28-
- Nothing
28+
- Reduces extra memory usage on `__destruct()` calls
2929

3030

3131
## 1.25.2 - 2022-09-25

src/PhpSpreadsheet/Collection/Cells.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ public function __destruct()
465465
*/
466466
private function getAllCacheKeys()
467467
{
468-
foreach ($this->getCoordinates() as $coordinate) {
468+
foreach ($this->index as $coordinate => $value) {
469469
yield $this->cachePrefix . $coordinate;
470470
}
471471
}

0 commit comments

Comments
 (0)