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 e6b2046 commit 47d295cCopy full SHA for 47d295c
lib/ExpressjsSessionHandler.php
@@ -43,11 +43,13 @@ class ExpressjsSessionHandler extends \SessionHandler
43
*/
44
public readonly object $store;
45
46
- /**
47
- * @param array $cfg
48
- * @return ExpressjsSessionHandler
49
- */
50
- public static function register(array $cfg): self
+
+ /**
+ * @param array ...$cfg
+ * @return static
+ * @throws \Exception
51
+ */
52
+ public static function register(mixed ...$cfg): self
53
{
54
//ini_set('session.name', $cfg['name']);
55
if (!empty($cfg['name'])) session_name($cfg['name']);
@@ -274,4 +276,4 @@ protected function _mongo_handler(Iterator&Countable $value): never {
274
276
}
275
277
278
-#EOF#
279
+//EOF//
0 commit comments