diff --git a/composer.json b/composer.json index 48d1ef75ee1..f72148038ec 100755 --- a/composer.json +++ b/composer.json @@ -48,7 +48,6 @@ "ext-zlib": "*", "angelfqc/vimeo-api": "2.0.6", "apereo/phpcas": "^1.6", - "brumann/polyfill-unserialize": "^1.0", "chamilo/pclzip": "~2.8", "clue/graph": "~0.9.0", "culqi/culqi-php": "1.3.4", diff --git a/main/inc/lib/UnserializeApi.php b/main/inc/lib/UnserializeApi.php index 14244c9aeef..6a87789b994 100644 --- a/main/inc/lib/UnserializeApi.php +++ b/main/inc/lib/UnserializeApi.php @@ -1,8 +1,6 @@ $allowedClasses] ); } - return Unserialize::unserialize( + return unserialize( $serialized, ['allowed_classes' => $allowedClasses] );