Skip to content

Fix undefined array key 'showControls' in MapHelper#15

Open
aerni wants to merge 1 commit into
jezzdk:mainfrom
aerni:fix/show-controls-default
Open

Fix undefined array key 'showControls' in MapHelper#15
aerni wants to merge 1 commit into
jezzdk:mainfrom
aerni:fix/show-controls-default

Conversation

@aerni
Copy link
Copy Markdown

@aerni aerni commented Apr 2, 2026

Summary

  • Adds missing 'showControls' => false default in MapHelper::convertToHtml()
  • Without this, PHP 8.4 throws ErrorException: Undefined array key "showControls" when the caller doesn't pass the key

Fixes #14

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#14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Undefined array key 'showControls' in MapHelper::convertToHtml()

1 participant