mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Using a more specific function to check for numbers on redis engine read
This commit is contained in:
parent
e6a87bac40
commit
4958f0ee5d
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ class RedisEngine extends CacheEngine {
|
|||
*/
|
||||
public function read($key) {
|
||||
$value = $this->_Redis->get($key);
|
||||
if (is_numeric($value)) {
|
||||
if (ctype_digit($value)) {
|
||||
$value = (int) $value;
|
||||
}
|
||||
if ($value !== false && is_string($value)) {
|
||||
|
|
Loading…
Reference in a new issue