From b13c9a021f177818abb5c7542178a7d40bf0024f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20T=C3=BDc?= Date: Mon, 13 Nov 2023 15:11:08 +0100 Subject: [PATCH] Update types for setcookie parameters Add data type to every `setcookie` parameters to reflect its requirements --- standard/standard_4.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/standard/standard_4.php b/standard/standard_4.php index ba361c1f1..522279f15 100644 --- a/standard/standard_4.php +++ b/standard/standard_4.php @@ -603,7 +603,7 @@ function restore_include_path() {} * setcookie successfully runs, it will return true. * This does not indicate whether the user accepted the cookie. */ -function setcookie(string $name, $value = "", $expires_or_options = 0, $path = "", $domain = "", $secure = false, $httponly = false): bool {} +function setcookie(string $name, string $value = "", int $expires_or_options = 0, string $path = "", string $domain = "", bool $secure = false, bool $httponly = false): bool {} /** * Send a cookie @@ -626,7 +626,7 @@ function setcookie(string $name, $value = "", $expires_or_options = 0, $path = " * This does not indicate whether the user accepted the cookie. * @since 7.3 */ -function setcookie(string $name, $value = '', array $options = []): bool {} +function setcookie(string $name, string $value = '', array $options = []): bool {} /** * Send a cookie without urlencoding the cookie value