Skip to content

Commit

Permalink
Implement empty arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
Tjoosten committed Jun 26, 2018
1 parent 8686f8d commit 8056ccb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

All notable changes to `misfits/toastr` will be documented in this file.

## 1.1.0 - XXXX-XX-XX
## 1.2.0 - 2018-06-26

- Fix #5 Implement default arrays for the functions.

## 1.1.0 - 2018-06-25

- Fix #1 | Fix typo. (`signleton` to `singleton`)

Expand Down
6 changes: 3 additions & 3 deletions src/Toastr.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function info(string $message, ?string $title = null, array $options = []
* @param array $options User defined Toastr notification options
* @return bool|void Return whether the notifications are successfully created or not.
*/
public function error(string $message, ?string $title = null, array $options): void
public function error(string $message, ?string $title = null, array $options = []): void
{
$this->add('error', $message, $title, $options);
}
Expand All @@ -148,7 +148,7 @@ public function error(string $message, ?string $title = null, array $options): v
* @param string $options User defined Toastr notification options
* @return bool|void Return whether the notification are successfully created or not.
*/
public function success(string $message, ?string $title = null, array $options): void
public function success(string $message, ?string $title = null, array $options = []): void
{
$this->add('success', $message, $title, $options);
}
Expand All @@ -161,7 +161,7 @@ public function success(string $message, ?string $title = null, array $options):
* @param string $options User defined Toastr notification options
* @return bool|void Return whether the notification are successfully created or not.
*/
public function warning(string $message, ?string $title = null, array $options): void
public function warning(string $message, ?string $title = null, array $options = []): void
{
$this->add('warning', $message, $title, $options);
}
Expand Down

0 comments on commit 8056ccb

Please sign in to comment.