Reduces extra memory usage on `__destruct()` calls (#3094)

* fix: Reduces memory usage on __destruct() call

* docs: CHANGELOG.md

Co-authored-by: Jose Rodriguez <jose.rodriguez@zecovery.com>
This commit is contained in:
José Rodríguez 2022-10-01 21:12:21 +02:00 committed by GitHub
parent 66695881e4
commit c6b095b626
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org).
### Fixed ### Fixed
- Nothing - Reduces extra memory usage on `__destruct()` calls
## 1.25.2 - 2022-09-25 ## 1.25.2 - 2022-09-25

View File

@ -465,7 +465,7 @@ class Cells
*/ */
private function getAllCacheKeys() private function getAllCacheKeys()
{ {
foreach ($this->getCoordinates() as $coordinate) { foreach ($this->index as $coordinate => $value) {
yield $this->cachePrefix . $coordinate; yield $this->cachePrefix . $coordinate;
} }
} }