From a1f3e273bd7bfe792e5444459ca0dfccedd98a3e Mon Sep 17 00:00:00 2001 From: albert <63851587@qq.com> Date: Sat, 19 Oct 2019 16:40:13 +0800 Subject: [PATCH] fixed code --- src/PhpParser.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/PhpParser.php b/src/PhpParser.php index 8a76c52..1eb87d2 100644 --- a/src/PhpParser.php +++ b/src/PhpParser.php @@ -42,7 +42,9 @@ public function encode($data): string */ public function decode(string $data) { - return $this->igbinaryAvailable ? \igbinary_unserialize($data) : \unserialize($data, - ['allowed_classes' => false]); + return $this->igbinaryAvailable ? \igbinary_unserialize($data) : \unserialize( + $data, + ['allowed_classes' => false] + ); } }