Skip to content

Commit 47d295c

Browse files
authored
Update ExpressjsSessionHandler.php
1 parent e6b2046 commit 47d295c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

lib/ExpressjsSessionHandler.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,13 @@ class ExpressjsSessionHandler extends \SessionHandler
4343
*/
4444
public readonly object $store;
4545

46-
/**
47-
* @param array $cfg
48-
* @return ExpressjsSessionHandler
49-
*/
50-
public static function register(array $cfg): self
46+
47+
/**
48+
* @param array ...$cfg
49+
* @return static
50+
* @throws \Exception
51+
*/
52+
public static function register(mixed ...$cfg): self
5153
{
5254
//ini_set('session.name', $cfg['name']);
5355
if (!empty($cfg['name'])) session_name($cfg['name']);
@@ -274,4 +276,4 @@ protected function _mongo_handler(Iterator&Countable $value): never {
274276
}
275277

276278

277-
#EOF#
279+
//EOF//

0 commit comments

Comments
 (0)