mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-04 10:32:40 +00:00
Take care of more int casts.
This commit is contained in:
parent
e77f96d8b7
commit
04ef39217f
15 changed files with 27 additions and 27 deletions
|
@ -165,7 +165,7 @@ class FileEngine extends CacheEngine {
|
|||
|
||||
$this->_File->rewind();
|
||||
$time = time();
|
||||
$cachetime = intval($this->_File->current());
|
||||
$cachetime = (int)$this->_File->current();
|
||||
|
||||
if ($cachetime !== false && ($cachetime < $time || ($time + $this->settings['duration']) < $cachetime)) {
|
||||
if ($this->settings['lock']) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue