diff options
Diffstat (limited to 'core/Common.php')
-rw-r--r-- | core/Common.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/Common.php b/core/Common.php index fd67308062..7085aea33f 100644 --- a/core/Common.php +++ b/core/Common.php @@ -319,6 +319,7 @@ class Common public static function safe_unserialize($string, $allowedClasses = [], $rethrow = false) { try { + // phpcs:ignore Generic.PHP.ForbiddenFunctions return unserialize($string, ['allowed_classes' => empty($allowedClasses) ? false : $allowedClasses]); } catch (\Throwable $e) { if ($rethrow) { |