Skip to content
This repository was archived by the owner on Mar 29, 2024. It is now read-only.

Commit 13f97a1

Browse files
committed
Fix array extractor
1 parent 474dd3b commit 13f97a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Extractors/PlainExtractors/ArrayExtractor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function extract(Context $context, Value $value, PlainExtractorDefinition
4646

4747
if ($next) {
4848
try {
49-
$out[] = $extractor->extract($context, $item, $definition);
49+
$out[] = $extractor->extract($context, $item, $next);
5050
} catch (ExtractorException $e) {
5151
throw new ExtractorException("Failed to convert array item #{$i}: " . $e->getMessage());
5252
}
@@ -77,7 +77,7 @@ public function extract(Context $context, Value $value, PlainExtractorDefinition
7777

7878
if ($next) {
7979
try {
80-
$out[$prop_name] = $extractor->extract($context, $item, $definition);
80+
$out[$prop_name] = $extractor->extract($context, $item, $next);
8181
} catch (ExtractorException $e) {
8282
throw new ExtractorException("Failed to convert array item #{$prop_name}: " . $e->getMessage());
8383
}

0 commit comments

Comments
 (0)