Skip to content

Commit

Permalink
Revert 'Fixed Warning: A non-numeric value encountered' from #35. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
colinmollenhour committed Apr 13, 2023
1 parent 70ab786 commit a4b5062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion File.php
Expand Up @@ -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);
Expand Down

0 comments on commit a4b5062

Please sign in to comment.