From 6f670a44430816453b7b001635754542f6d55540 Mon Sep 17 00:00:00 2001 From: Theodore Brown Date: Sun, 21 Sep 2025 11:15:27 -0500 Subject: [PATCH] Replace legacy __wakeup with __unserialize `__wakeup` is deprecated in PHP 8.5. --- src/Generator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Generator.php b/src/Generator.php index ee01a41e94..e605ef3112 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -966,8 +966,8 @@ public function __destruct() $this->seed(); } - public function __wakeup() + public function __unserialize(array $data) { - $this->formatters = []; + throw new \Exception('Generator cannot be unserialized'); } }