diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2019-07-13 22:13:09 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2019-07-13 22:13:09 +0100 |
| commit | ea75abda1c0370fb1de46fb302c8871017f17632 (patch) | |
| tree | 6ad700e0af225680cbeb9349882aa77f9292f5e9 /vendor/symfony/http-foundation/Response.php | |
| parent | d0bcc06fc828c5fd8500d82c2aef6b766eb1c443 (diff) | |
| download | webtrees-ea75abda1c0370fb1de46fb302c8871017f17632.tar.gz webtrees-ea75abda1c0370fb1de46fb302c8871017f17632.tar.bz2 webtrees-ea75abda1c0370fb1de46fb302c8871017f17632.zip | |
Update vendor dependencies
Diffstat (limited to 'vendor/symfony/http-foundation/Response.php')
| -rw-r--r-- | vendor/symfony/http-foundation/Response.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/symfony/http-foundation/Response.php b/vendor/symfony/http-foundation/Response.php index c3ac19d4a9..d1263ca7a1 100644 --- a/vendor/symfony/http-foundation/Response.php +++ b/vendor/symfony/http-foundation/Response.php @@ -684,7 +684,7 @@ class Response return (int) $age; } - return max(time() - $this->getDate()->format('U'), 0); + return max(time() - (int) $this->getDate()->format('U'), 0); } /** @@ -764,7 +764,7 @@ class Response } if (null !== $this->getExpires()) { - return (int) ($this->getExpires()->format('U') - $this->getDate()->format('U')); + return (int) $this->getExpires()->format('U') - (int) $this->getDate()->format('U'); } return null; |
