From b6a6bc0ca437e05738c8c297ee7f729cfbb294e2 Mon Sep 17 00:00:00 2001 From: maxpozdeev Date: Mon, 17 Feb 2025 12:31:10 +0300 Subject: [PATCH] add comments to avoid notices in ide --- src/init.php | 1 + src/setup.php | 1 + 2 files changed, 2 insertions(+) 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,