]> git.mxchange.org Git - friendica.git/commitdiff
remove maybeSerialize (always serialize)
authorPhilipp <admin@philipp.info>
Sun, 12 Feb 2023 14:48:41 +0000 (15:48 +0100)
committerPhilipp <admin@philipp.info>
Sun, 12 Feb 2023 14:48:41 +0000 (15:48 +0100)
src/Core/Config/Util/SerializeUtil.php

index 67451a9011ce343e00155c8e29155aea9cf50089..0a886e2305fa44a50c706fa8e1b87244d982e7d7 100644 (file)
@@ -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)) {