From 7d9cd01a1155318046edeffe5860722c2883adaf Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos <1697880+AngelFQC@users.noreply.github.com> Date: Tue, 17 Dec 2024 16:17:20 -0500 Subject: [PATCH] Vendor: Remove brumann/polyfill-unserialize > In case you are using PHP 7.0+ the original unserialize() will be used instead. --- composer.json | 1 - main/inc/lib/UnserializeApi.php | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) 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] );