Skip to content

Commit

Permalink
Add string and DateTimeInterface to setCookie expire param
Browse files Browse the repository at this point in the history
In version 3.2.x and older, this was the type in the docblock.

Close nette#233
  • Loading branch information
spaze committed Mar 22, 2024
1 parent c779293 commit b133911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/IResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ function getHeaders(): array;
function setCookie(
string $name,
string $value,
?int $expire,
string|int|\DateTimeInterface|null $expire,
?string $path = null,
?string $domain = null,
?bool $secure = null,
Expand Down

0 comments on commit b133911

Please sign in to comment.