1
1
Fork 0

remove maybeSerialize (always serialize)

This commit is contained in:
Philipp Holzer 2023-02-12 15:48:41 +01:00
parent 8881882bce
commit a9c0636573
Signed by: nupplaPhil
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)) {