Skip to content

Commit 84c2e8e

Browse files
committed
Update HttpCookie.php
1 parent 326ddee commit 84c2e8e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

webfiori/http/HttpCookie.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,12 @@ public function getPath() : string {
153153
* number of seconds remaining before the cookie dies.
154154
*/
155155
public function getRemainingTime() : int {
156-
$expires = $this->getExpires();
156+
$expiresAt = $this->getExpires();
157157

158-
if ($expires == 0) {
158+
if ($expiresAt == 0) {
159159
return 0;
160160
}
161-
$remaining = $expires - time();
161+
$remaining = $expiresAt - time();
162162

163163
if ($remaining < 0) {
164164
return 0;

0 commit comments

Comments
 (0)