remove maybeSerialize (always serialize)

This commit is contained in:
Philipp 2023-02-12 15:48:41 +01:00
parent 8881882bce
commit a9c0636573
No known key found for this signature in database
GPG key ID: 24A7501396EB5432

View 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)) {