From 1b68b340e8632bd041f5bdeb29a4707ce27914a3 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Thu, 14 Mar 2024 19:39:31 +0000 Subject: [PATCH] chore: fixes static analysis --- src/Support/Exporter.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Support/Exporter.php b/src/Support/Exporter.php index ea02ce61..d653fc02 100644 --- a/src/Support/Exporter.php +++ b/src/Support/Exporter.php @@ -64,6 +64,8 @@ public function shortenedRecursiveExport(array &$data, ?Context $context = null) continue; } + assert(is_array($data)); + $result[] = $context->contains($data[$key]) !== false ? '*RECURSION*' : sprintf('[%s]', $this->shortenedRecursiveExport($data[$key], $context));