From 3219a37e553249100052aa5d5e97ece82e870eb8 Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Mon, 8 Apr 2019 11:41:55 +0200 Subject: [PATCH] Always set the path as string --- src/Internal/GenericExporter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Internal/GenericExporter.php b/src/Internal/GenericExporter.php index 4c9ec3d..ba2e7dd 100644 --- a/src/Internal/GenericExporter.php +++ b/src/Internal/GenericExporter.php @@ -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);