remove maybeSerialize (always serialize)
This commit is contained in:
parent
8881882bce
commit
a9c0636573
1 changed files with 0 additions and 13 deletions
|
@ -28,19 +28,6 @@ namespace Friendica\Core\Config\Util;
|
|||
*/
|
||||
class SerializeUtil
|
||||
{
|
||||
public static function maybeSerialize($value): string
|
||||
{
|
||||
if (is_array($value) || is_object($value)) {
|
||||
return serialize($value);
|
||||
}
|
||||
|
||||
if (static::isSerialized($value, false)) {
|
||||
return serialize($value);
|
||||
}
|
||||
|
||||
return $value;
|
||||
}
|
||||
|
||||
public static function maybeUnserialize($value)
|
||||
{
|
||||
if (static::isSerialized($value)) {
|
||||
|
|
Loading…
Reference in a new issue