Skip to content

Commit ab1a312

Browse files
committed
fix: patch up nullable param
1 parent 139fc71 commit ab1a312

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Flash.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static function set($message, string $key = 'default')
5353
*
5454
* @param string|null $key The key of message to remove
5555
*/
56-
public static function unset(string $key = null)
56+
public static function unset(?string $key = null)
5757
{
5858
$data = Session::get(static::$config['key'], null, false);
5959

@@ -84,7 +84,7 @@ public static function remove(): void
8484
* @param string|null $key The key of message to get
8585
* @return string|array
8686
*/
87-
protected static function get(string $key = null)
87+
protected static function get(?string $key = null)
8888
{
8989
if (!$key) {
9090
return Session::get(static::$config['key']);

0 commit comments

Comments
 (0)