Skip to content

Commit f40c218

Browse files
authored
Merge pull request #17 from joanhey/cookie
Add info message
2 parents fd09a72 + 8cf4cd1 commit f40c218

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AdapterFunctions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ function http_response_code(int $code = null): int
5454
*/
5555
function setcookie(string $name, string $value = '', int|array $expires = 0, string $path = '', string $domain = '', bool $secure = FALSE, bool $httponly = FALSE): bool
5656
{
57-
if (is_array($expires)) {
57+
if (is_array($expires)) { // Alternative signature available as of PHP 7.3.0 (not supported with named parameters)
5858
$expires = $expires['expires'] ?? 0;
5959
$path = $expires['path'] ?? '';
6060
$domain = $expires['domain'] ?? '';
6161
$secure = $expires['secure'] ?? FALSE;
6262
$httponly = $expires['httponly'] ?? FALSE;
6363
}
64-
64+
6565
return Http::setcookie($name, $value, $expires, $path, $domain, $secure, $httponly);
6666
}
6767

0 commit comments

Comments
 (0)