diff --git a/src/init.php b/src/init.php index 25e222a..3c6ba9d 100644 --- a/src/init.php +++ b/src/init.php @@ -238,6 +238,7 @@ function update_token(): string setcookie('mtt-token', $token, 0, url_dir(get_unsafe_mttinfo('mtt_url')). '; samesite=lax', '', false, true ); } else { + /** @disregard P1006 available in php 7.3 */ setcookie('mtt-token', $token, [ 'path' => url_dir(get_unsafe_mttinfo('mtt_url')), 'httponly' => true, diff --git a/src/setup.php b/src/setup.php index 254682b..333533d 100644 --- a/src/setup.php +++ b/src/setup.php @@ -229,6 +229,7 @@ function update_stoken() setcookie('mtt-s-token', $token, 0, url_dir(getRequestUri()). '; samesite=lax', '', false, true ) ; } else { + /** @disregard P1006 available in php 7.3 */ setcookie('mtt-s-token', $token, [ 'path' => url_dir(getRequestUri()), 'httponly' => true,