Skip to content

Commit

Permalink
Fix: Autovivification from null is now not allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
drmad committed Mar 22, 2022
1 parent d9fa105 commit 7e57f62
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions src/AlertMessages.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

use Vendimia\Session\SessionManager;

/**
*
/**
*
*/
class AlertMessages
{
Expand All @@ -23,6 +23,10 @@ public function addMessage(
string $icon = '',
array $options = []
) {
if (!$this->session['vendimia-alertmessages']) {
$this->session['vendimia-alertmessages'] = [];
}

$this->session['vendimia-alertmessages'][] = [
'content' => $content,
'type' => strtolower($type->name),
Expand All @@ -42,10 +46,10 @@ public function retrieveMessages(): array
}

/**
*
*
*/
public function success(
string $content,
string $content,
string $extra = '',
string $icon = '',
array $options = []
Expand All @@ -55,10 +59,10 @@ public function success(
}

/**
*
*
*/
public function info(
string $content,
string $content,
string $extra = '',
string $icon = '',
array $options = []
Expand All @@ -68,10 +72,10 @@ public function info(
}

/**
*
*
*/
public function warning(
string $content,
string $content,
string $extra = '',
string $icon = '',
array $options = []
Expand All @@ -81,10 +85,10 @@ public function warning(
}

/**
*
*
*/
public function error(
string $content,
string $content,
string $extra = '',
string $icon = '',
array $options = []
Expand Down

0 comments on commit 7e57f62

Please sign in to comment.