Skip to content

Commit 9c43e7d

Browse files
committed
Merge pull request #37 from nicolas-grekas/fix
Fix for HHVM
2 parents ed7d62e + 66ab173 commit 9c43e7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/CachePoolTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ public function testSavingObject()
866866
}
867867

868868
$item = $this->cache->getItem('key');
869-
$item->set(\DateTime::createFromFormat('U', time()));
869+
$item->set(new \DateTime());
870870
$this->cache->save($item);
871871

872872
$item = $this->cache->getItem('key');

0 commit comments

Comments
 (0)