Vendor: Remove brumann/polyfill-unserialize

> In case you are using PHP 7.0+ the original unserialize() will be used instead.
pull/5986/head
Angel Fernando Quiroz Campos 9 months ago
parent e117d3f69f
commit 7d9cd01a11
No known key found for this signature in database
GPG Key ID: B284841AE3E562CD
  1. 1
      composer.json
  2. 6
      main/inc/lib/UnserializeApi.php

@ -48,7 +48,6 @@
"ext-zlib": "*", "ext-zlib": "*",
"angelfqc/vimeo-api": "2.0.6", "angelfqc/vimeo-api": "2.0.6",
"apereo/phpcas": "^1.6", "apereo/phpcas": "^1.6",
"brumann/polyfill-unserialize": "^1.0",
"chamilo/pclzip": "~2.8", "chamilo/pclzip": "~2.8",
"clue/graph": "~0.9.0", "clue/graph": "~0.9.0",
"culqi/culqi-php": "1.3.4", "culqi/culqi-php": "1.3.4",

@ -1,8 +1,6 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
use Brumann\Polyfill\Unserialize;
/** /**
* Class UnserializeApi. * Class UnserializeApi.
*/ */
@ -109,13 +107,13 @@ class UnserializeApi
} }
if ($ignoreErrors) { if ($ignoreErrors) {
return @Unserialize::unserialize( return @unserialize(
$serialized, $serialized,
['allowed_classes' => $allowedClasses] ['allowed_classes' => $allowedClasses]
); );
} }
return Unserialize::unserialize( return unserialize(
$serialized, $serialized,
['allowed_classes' => $allowedClasses] ['allowed_classes' => $allowedClasses]
); );

Loading…
Cancel
Save