Skip to content

Commit

Permalink
#113 - php8 array migration - warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardnico committed Jun 11, 2024
1 parent 3ffa721 commit 20eb998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ComboStrap/EditButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public static function replaceAll($html)

$target = $data[self::TARGET_ATTRIBUTE_NAME];

$message = $data[self::EDIT_MESSAGE];
$message = $data[self::EDIT_MESSAGE] ?? null;
unset($data[self::EDIT_MESSAGE]);
if ($message === null || trim($message) === "") {
$message = "Edit {$target}";
Expand Down

0 comments on commit 20eb998

Please sign in to comment.