mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-20 05:18:42 +00:00
add allowed datatype
This commit is contained in:
parent
1378cf4b57
commit
5b61c9718d
|
|
@ -80,7 +80,7 @@ class MemCached extends ConnectionAbstract
|
|||
return;
|
||||
}
|
||||
|
||||
if (!(\is_scalar($value) || $value === null || $value instanceof \JsonSerializable || $value instanceof \Serializable)) {
|
||||
if (!(\is_scalar($value) || $value === null || \is_array($value) || $value instanceof \JsonSerializable || $value instanceof \Serializable)) {
|
||||
throw new \InvalidArgumentException();
|
||||
}
|
||||
|
||||
|
|
@ -96,7 +96,7 @@ class MemCached extends ConnectionAbstract
|
|||
return false;
|
||||
}
|
||||
|
||||
if (!(\is_scalar($value) || $value === null || $value instanceof \JsonSerializable || $value instanceof \Serializable)) {
|
||||
if (!(\is_scalar($value) || $value === null || \is_array($value) || $value instanceof \JsonSerializable || $value instanceof \Serializable)) {
|
||||
throw new \InvalidArgumentException();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ class RedisCache extends ConnectionAbstract
|
|||
return;
|
||||
}
|
||||
|
||||
if (!(\is_scalar($value) || $value === null || $value instanceof \JsonSerializable || $value instanceof \Serializable)) {
|
||||
if (!(\is_scalar($value) || $value === null || \is_array($value) || $value instanceof \JsonSerializable || $value instanceof \Serializable)) {
|
||||
throw new \InvalidArgumentException();
|
||||
}
|
||||
|
||||
|
|
@ -115,7 +115,7 @@ class RedisCache extends ConnectionAbstract
|
|||
return false;
|
||||
}
|
||||
|
||||
if (!(\is_scalar($value) || $value === null || $value instanceof \JsonSerializable || $value instanceof \Serializable)) {
|
||||
if (!(\is_scalar($value) || $value === null || \is_array($value) || $value instanceof \JsonSerializable || $value instanceof \Serializable)) {
|
||||
throw new \InvalidArgumentException();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user