From 040f32f7d699fa75dfcb780425dec27ca8e13110 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Fri, 24 Jan 2025 17:29:56 +0000 Subject: [PATCH] Prevent infinite loops with Laravel Telescope --- src/Data/HasAugmentedInstance.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Data/HasAugmentedInstance.php b/src/Data/HasAugmentedInstance.php index 49a4d4dff6..5cc24cffc6 100644 --- a/src/Data/HasAugmentedInstance.php +++ b/src/Data/HasAugmentedInstance.php @@ -97,6 +97,11 @@ protected function excludedEvaluatedAugmentedArrayKeys() return null; } + public function formatForTelescope(): array + { + return $this->toShallowAugmentedArray(); + } + public function toArray() { return $this->toEvaluatedAugmentedArray();