Skip to content

Commit 7d9cd01

Browse files
committed
Vendor: Remove brumann/polyfill-unserialize
> In case you are using PHP 7.0+ the original unserialize() will be used instead.
1 parent e117d3f commit 7d9cd01

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

composer.json

-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
"ext-zlib": "*",
4949
"angelfqc/vimeo-api": "2.0.6",
5050
"apereo/phpcas": "^1.6",
51-
"brumann/polyfill-unserialize": "^1.0",
5251
"chamilo/pclzip": "~2.8",
5352
"clue/graph": "~0.9.0",
5453
"culqi/culqi-php": "1.3.4",

main/inc/lib/UnserializeApi.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<?php
22
/* For licensing terms, see /license.txt */
33

4-
use Brumann\Polyfill\Unserialize;
5-
64
/**
75
* Class UnserializeApi.
86
*/
@@ -109,13 +107,13 @@ public static function unserialize($type, $serialized, $ignoreErrors = false)
109107
}
110108

111109
if ($ignoreErrors) {
112-
return @Unserialize::unserialize(
110+
return @unserialize(
113111
$serialized,
114112
['allowed_classes' => $allowedClasses]
115113
);
116114
}
117115

118-
return Unserialize::unserialize(
116+
return unserialize(
119117
$serialized,
120118
['allowed_classes' => $allowedClasses]
121119
);

0 commit comments

Comments
 (0)