Skip to content

Commit ef37e24

Browse files
Replace null as array key with an empty string to ensure PHP-8.5 compatibility
1 parent 087ea0e commit ef37e24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FormElement/SearchSuggestions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ protected function assemble(): void
231231
if ($groupingCallback) {
232232
$provider = yield_groups($this->provider, $groupingCallback);
233233
} else {
234-
$provider = [null => $this->provider];
234+
$provider = ['' => $this->provider];
235235
}
236236

237237
/** @var iterable<?string, array<array<string, string>>> $provider */

0 commit comments

Comments
 (0)