diff --git a/src/PHPixie/Cache/Drivers/Type/File.php b/src/PHPixie/Cache/Drivers/Type/File.php index 750cd69..570f2bb 100644 --- a/src/PHPixie/Cache/Drivers/Type/File.php +++ b/src/PHPixie/Cache/Drivers/Type/File.php @@ -83,7 +83,7 @@ protected function getItemWithoutCleanup($key) public function clear() { foreach (scandir($this->directory) as $file) { - if($file{0} == '.') { + if($file[0] == '.') { continue; } @@ -111,7 +111,7 @@ public function cleanup() $now = time(); foreach (scandir($this->directory) as $file) { - if($file{0} == '.') { + if($file[0] == '.') { continue; } @@ -141,4 +141,4 @@ protected function checkFileExpiry($file, $time) abstract protected function getExpiryTimestamp($file); abstract protected function getFileData($file); abstract protected function buildFileContents($value, $timestamp); -} \ No newline at end of file +}