From 0d094c98302df5468c23a098a5ce3f50fef59455 Mon Sep 17 00:00:00 2001 From: Alexander Minkin Date: Mon, 11 Dec 2023 13:38:00 +0300 Subject: [PATCH] fix: make __wakeup methods public PHP 8+ requires that __wakeup must be public --- chandler/Database/DatabaseConnection.php | 2 +- chandler/Patterns/TSimpleSingleton.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chandler/Database/DatabaseConnection.php b/chandler/Database/DatabaseConnection.php index 5aee7e2..558d3b9 100644 --- a/chandler/Database/DatabaseConnection.php +++ b/chandler/Database/DatabaseConnection.php @@ -35,7 +35,7 @@ class DatabaseConnection } private function __clone() {} - private function __wakeup() {} + public function __wakeup() {} protected function getQueryCallback(): array { diff --git a/chandler/Patterns/TSimpleSingleton.php b/chandler/Patterns/TSimpleSingleton.php index d055b02..53b0b1c 100644 --- a/chandler/Patterns/TSimpleSingleton.php +++ b/chandler/Patterns/TSimpleSingleton.php @@ -7,7 +7,7 @@ trait TSimpleSingleton private function __construct() {} private function __clone() {} - private function __wakeup() {} + public function __wakeup() {} static function i() {