From 32ff03d078fed1279c4ec9a407d08c5e9febb480 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Fri, 8 Sep 2023 06:46:58 +0200 Subject: [PATCH] Closes #49 --- ChangeLog.md | 7 +++++++ src/Exporter.php | 2 ++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog.md b/ChangeLog.md index 4ec1b5e..068bcdf 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -2,6 +2,12 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles. +## [5.0.1] - 2023-09-08 + +### Fixed + +* [#49](https://github.com/sebastianbergmann/exporter/issues/49): `Exporter::toArray()` changes `SplObjectStorage` index + ## [5.0.0] - 2023-02-03 ### Changed @@ -76,6 +82,7 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt * Remove HHVM-specific code that is no longer needed +[5.0.1]: https://github.com/sebastianbergmann/exporter/compare/5.0.0...5.0.1 [5.0.0]: https://github.com/sebastianbergmann/exporter/compare/4.0.5...5.0.0 [4.0.5]: https://github.com/sebastianbergmann/exporter/compare/4.0.4...4.0.5 [4.0.4]: https://github.com/sebastianbergmann/exporter/compare/4.0.3...4.0.4 diff --git a/src/Exporter.php b/src/Exporter.php index 8ffbacb..6278f92 100644 --- a/src/Exporter.php +++ b/src/Exporter.php @@ -188,6 +188,8 @@ final class Exporter 'inf' => $value->getInfo(), ]; } + + $value->rewind(); } return $array;