language and static

This commit is contained in:
Philipp 2023-02-19 18:59:09 +01:00
parent d772331b91
commit 41251458a0
No known key found for this signature in database
GPG Key ID: 24A7501396EB5432

View File

@ -31,14 +31,14 @@ class SerializeUtil
/**
* Checks if the value needs to get unserialized and returns the unserialized value
*
* @param mixed $value A possible serialized value
* @param mixed $value A possibly serialized value
*
* @return mixed The unserialized value
*/
public static function maybeUnserialize($value)
{
// This checks for possible multiple serialized values
while (SerializeUtil::isSerialized($value)) {
while (static::isSerialized($value)) {
$oldValue = $value;
$value = @unserialize($value);