From 3ff1448e5628147616680b0a046ac6e496b0255d Mon Sep 17 00:00:00 2001 From: suyi Date: Tue, 29 Oct 2024 10:58:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/README.en.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/server/README.en.md b/server/README.en.md index ec547e9..c077923 100644 --- a/server/README.en.md +++ b/server/README.en.md @@ -156,7 +156,21 @@ pc try_files $uri $uri/ /pc/index.html; } ``` +v5 - Serialization Warning Issue Note: As of PHP 8.1.0, classes that implement the Serializable interface will have a deprecation warning if they do not implement both the __serialize() and __unserialize() methods. +Opis\\Closure\\SerializableClosure implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) +vendor/opis/closure/src/SerializableClosure.php +``` +添加以下代码: +public function __serialize() +{ +return $this->serialize(); +} +public function __unserialize($data) +{ +$this->unserialize($data); +} +``` # Manual (文档) -- Gitee