mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-20 13:28:42 +00:00
Fix para bug
This commit is contained in:
parent
77b752f8ec
commit
8207096687
|
|
@ -289,7 +289,7 @@ class FileCache implements CacheInterface
|
|||
}
|
||||
|
||||
$raw = File::get($path);
|
||||
$type = $raw[0];
|
||||
$type = (int) $raw[0];
|
||||
|
||||
$expireStart = strpos($raw, self::DELIM);
|
||||
$expireEnd = strpos($raw, self::DELIM, $expireStart + 1);
|
||||
|
|
@ -301,10 +301,10 @@ class FileCache implements CacheInterface
|
|||
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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user