From e64d172f91932e54f02cb33c348e0cf7c2fabdd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laurent=20L=C3=A9cluse?= <laurent.lecluse@unicaen.fr> Date: Fri, 5 Apr 2024 17:31:48 +0200 Subject: [PATCH] =?UTF-8?q?Pr=C3=A9servation=20des=20indexs=20e=20tableau?= =?UTF-8?q?=20avec=20L'Axios=20Extractor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 5 +++++ src/Axios/AxiosExtractor.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b1ebb5a..b14a29a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ CHANGELOG ========= +6.2.3 (05/04/2024) +------------------ + +- Préservation des indexs e tableau avec L'Axios Extractor + 6.2.2 (04/04/2024) ------------------ diff --git a/src/Axios/AxiosExtractor.php b/src/Axios/AxiosExtractor.php index eae0bb2..302b404 100644 --- a/src/Axios/AxiosExtractor.php +++ b/src/Axios/AxiosExtractor.php @@ -125,8 +125,8 @@ class AxiosExtractor protected function extractList($list, array $properties = [], string $path = ''): array { $result = []; - foreach ($list as $sobj) { - $result[] = $this->extractData($sobj, $properties, $path); + foreach ($list as $index => $sobj) { + $result[$index] = $this->extractData($sobj, $properties, $path); } return $result; -- GitLab