Skip to content

Commit

Permalink
Vendor: Remove brumann/polyfill-unserialize
Browse files Browse the repository at this point in the history
> In case you are using PHP 7.0+ the original unserialize() will be used instead.
  • Loading branch information
AngelFQC committed Dec 17, 2024
1 parent e117d3f commit 7d9cd01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 2 additions & 4 deletions main/inc/lib/UnserializeApi.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php
/* For licensing terms, see /license.txt */

use Brumann\Polyfill\Unserialize;

/**
* Class UnserializeApi.
*/
Expand Down Expand Up @@ -109,13 +107,13 @@ public static function unserialize($type, $serialized, $ignoreErrors = false)
}

if ($ignoreErrors) {
return @Unserialize::unserialize(
return @unserialize(
$serialized,
['allowed_classes' => $allowedClasses]
);
}

return Unserialize::unserialize(
return unserialize(
$serialized,
['allowed_classes' => $allowedClasses]
);
Expand Down

0 comments on commit 7d9cd01

Please sign in to comment.