mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
add comments to avoid notices in ide
This commit is contained in:
parent
8082278af5
commit
b6a6bc0ca4
2 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue