We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 139fc71 commit ab1a312Copy full SHA for ab1a312
src/Flash.php
@@ -53,7 +53,7 @@ public static function set($message, string $key = 'default')
53
*
54
* @param string|null $key The key of message to remove
55
*/
56
- public static function unset(string $key = null)
+ public static function unset(?string $key = null)
57
{
58
$data = Session::get(static::$config['key'], null, false);
59
@@ -84,7 +84,7 @@ public static function remove(): void
84
* @param string|null $key The key of message to get
85
* @return string|array
86
87
- protected static function get(string $key = null)
+ protected static function get(?string $key = null)
88
89
if (!$key) {
90
return Session::get(static::$config['key']);
0 commit comments