mirror of
https://github.com/friendica/friendica
synced 2025-01-24 11:39:46 +00:00
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
|
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)
|
public static function maybeUnserialize($value)
|
||||||
{
|
{
|
||||||
if (static::isSerialized($value)) {
|
if (static::isSerialized($value)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue