From a4b5062f6d2a78bdf6885b9b1e3a95dc4039d4fd Mon Sep 17 00:00:00 2001 From: Colin Mollenhour Date: Thu, 13 Apr 2023 08:09:57 -0400 Subject: [PATCH] Revert 'Fixed Warning: A non-numeric value encountered' from #35. Fixes #38 --- File.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/File.php b/File.php index 99ae029..83ac9db 100644 --- a/File.php +++ b/File.php @@ -197,7 +197,7 @@ public function save($data, $id, $tags = array(), $specificLifetime = false) $metadatas = array( 'hash' => $hash, 'mtime' => time(), - 'expire' => $this->_expireTime((int)$this->getLifetime($specificLifetime)), + 'expire' => $this->_expireTime($this->getLifetime($specificLifetime)), 'tags' => implode(',', $tags), ); $res = $this->_filePutContents($file, serialize($metadatas)."\n".$data);