Skip to content

Commit

Permalink
Always set the path as string
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Apr 8, 2019
1 parent c71662b commit 3219a37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Internal/GenericExporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function exportArray(array $array, array $path = []) : array
$isLast = (++$current === $count);

$newPath = $path;
$newPath[] = $key;
$newPath[] = (string) $key;

$exported = $this->export($value, $newPath);

Expand Down

0 comments on commit 3219a37

Please sign in to comment.