Skip to content

Commit

Permalink
fix deprecation warning for PHP 8.1 if actionUrl is null. (#36991)
Browse files Browse the repository at this point in the history
  • Loading branch information
lupinitylabs committed Apr 15, 2021
1 parent 9f455b7 commit 74e7b29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Notifications/Messages/SimpleMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public function toArray()
'outroLines' => $this->outroLines,
'actionText' => $this->actionText,
'actionUrl' => $this->actionUrl,
'displayableActionUrl' => str_replace(['mailto:', 'tel:'], '', $this->actionUrl),
'displayableActionUrl' => str_replace(['mailto:', 'tel:'], '', $this->actionUrl ?? ''),
];
}
}

0 comments on commit 74e7b29

Please sign in to comment.