From 461a4eba94d51b7482950fdec0c517db66eb7a34 Mon Sep 17 00:00:00 2001 From: Michael Aerni Date: Thu, 2 Apr 2026 11:11:33 +0200 Subject: [PATCH] Fix undefined array key 'showControls' in MapHelper Add missing default value for 'showControls' in the array_merge defaults. Without this, PHP 8.4 throws an ErrorException when the caller doesn't pass showControls. Fixes jezzdk/statamic-google-maps#14 --- src/Helpers/MapHelper.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Helpers/MapHelper.php b/src/Helpers/MapHelper.php index 58098eb..999d64d 100644 --- a/src/Helpers/MapHelper.php +++ b/src/Helpers/MapHelper.php @@ -43,6 +43,7 @@ public static function convertToHtml(array $params) 'markerLng' => null, 'icon' => $addon->edition() === 'pro' ? '/assets/marker.png' : null, 'style' => null, + 'showControls' => false, ], $params); // Destruct the params array into variables