add comments to avoid notices in ide

This commit is contained in:
maxpozdeev 2025-02-17 12:31:10 +03:00
parent 8082278af5
commit b6a6bc0ca4
2 changed files with 2 additions and 0 deletions

View file

@ -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,

View file

@ -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,