Fix para bug

This commit is contained in:
Dennis Eichhorn 2017-11-11 13:59:33 +01:00
parent 77b752f8ec
commit 8207096687

View File

@ -289,7 +289,7 @@ class FileCache implements CacheInterface
} }
$raw = File::get($path); $raw = File::get($path);
$type = $raw[0]; $type = (int) $raw[0];
$expireStart = strpos($raw, self::DELIM); $expireStart = strpos($raw, self::DELIM);
$expireEnd = strpos($raw, self::DELIM, $expireStart + 1); $expireEnd = strpos($raw, self::DELIM, $expireStart + 1);
@ -301,10 +301,10 @@ class FileCache implements CacheInterface
return null; return null;
} }
return $this->parseValue($raw, $expireEnd); return $this->parseValue($type, $raw, $expireEnd);
} }
private function parseValue(string $raw, int $expireEnd) private function parseValue(int $type, string $raw, int $expireEnd)
{ {
$value = null; $value = null;