From f776db9278a70b7bb3ce78de5f0da27ca8b6568f Mon Sep 17 00:00:00 2001 From: Mischa ter Smitten Date: Fri, 2 Jul 2021 18:34:58 +0200 Subject: [PATCH] Fix: Undefined index: samesite --- src/SlimSession/Cookie.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SlimSession/Cookie.php b/src/SlimSession/Cookie.php index 911bfe9..a334623 100644 --- a/src/SlimSession/Cookie.php +++ b/src/SlimSession/Cookie.php @@ -36,7 +36,7 @@ private static function call($params, $set) ]; $new = PHP_VERSION_ID >= 70300; - $samesite = $params['samesite']; + $samesite = @$params['samesite']; if ($new) { $args['samesite'] = $samesite; if ($set) {