Fixed Implicit array creation is disallowed.

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-02-06 12:41:54 -08:00
parent 14e95c47e1
commit b25676c96b
5 changed files with 5 additions and 5 deletions

View file

@ -40,7 +40,7 @@ class AcceptanceAssetAcceptedNotification extends Notification
public function via() public function via()
{ {
$notifyBy[] = 'mail'; $notifyBy = ['mail'];
return $notifyBy; return $notifyBy;

View file

@ -38,7 +38,7 @@ class AcceptanceAssetDeclinedNotification extends Notification
*/ */
public function via($notifiable) public function via($notifiable)
{ {
$notifyBy[] = 'mail'; $notifyBy = ['mail'];
return $notifyBy; return $notifyBy;

View file

@ -32,7 +32,7 @@ class InventoryAlert extends Notification
*/ */
public function via() public function via()
{ {
$notifyBy[] = 'mail'; $notifyBy = ['mail'];
return $notifyBy; return $notifyBy;
} }

View file

@ -40,7 +40,7 @@ class SendUpcomingAuditNotification extends Notification
*/ */
public function toMail() public function toMail()
{ {
$message = (new MailMessage)->markdown('notifications.markdown.upcoming-audits', $message = (new MailMessage())->markdown('notifications.markdown.upcoming-audits',
[ [
'assets' => $this->assets, 'assets' => $this->assets,
'threshold' => $this->threshold, 'threshold' => $this->threshold,

View file

@ -44,7 +44,7 @@ class WelcomeNotification extends Notification
*/ */
public function toMail() public function toMail()
{ {
return (new MailMessage) return (new MailMessage())
->subject(trans('mail.welcome', ['name' => $this->_data['first_name'].' '.$this->_data['last_name']])) ->subject(trans('mail.welcome', ['name' => $this->_data['first_name'].' '.$this->_data['last_name']]))
->markdown('notifications.Welcome', $this->_data); ->markdown('notifications.Welcome', $this->_data);
} }