From: Philipp Date: Sun, 12 Feb 2023 14:48:41 +0000 (+0100) Subject: remove maybeSerialize (always serialize) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a9c063657321fb848db444649f0f0417a00d7243;p=friendica.git remove maybeSerialize (always serialize) --- diff --git a/src/Core/Config/Util/SerializeUtil.php b/src/Core/Config/Util/SerializeUtil.php index 67451a9011..0a886e2305 100644 --- a/src/Core/Config/Util/SerializeUtil.php +++ b/src/Core/Config/Util/SerializeUtil.php @@ -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)) {