Skip to content

Commit

Permalink
Fix tests for HHVM
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesvdvreken committed Jul 2, 2016
1 parent 484a73e commit b7ecb24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Laravel/CacheItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function expiresAt($expires)
{
if ($expires instanceof DateTimeInterface && ! $expires instanceof DateTimeImmutable) {
$timezone = $expires->getTimezone();
$expires = DateTimeImmutable::createFromFormat('U', $expires->getTimestamp(), $timezone);
$expires = DateTimeImmutable::createFromFormat('U', (string) $expires->getTimestamp(), $timezone);
$expires->setTimezone($timezone);
}

Expand Down

0 comments on commit b7ecb24

Please sign in to comment.