From 750d70c77a73a50c223f4a0feedc4e12ff8671a7 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Fri, 9 Jun 2017 17:10:58 +0200 Subject: [PATCH] removed DateTime::__wakeup --- src/Dibi/DateTime.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/Dibi/DateTime.php b/src/Dibi/DateTime.php index fbc1d08c..f8a37fd9 100644 --- a/src/Dibi/DateTime.php +++ b/src/Dibi/DateTime.php @@ -58,18 +58,4 @@ class DateTime extends \DateTime return $this->format('Y-m-d H:i:s.u'); } - - public function __wakeup() - { - if (isset($this->fix, $this->fix[1])) { - $this->__construct($this->fix[0], new \DateTimeZone($this->fix[1])); - unset($this->fix); - } elseif (isset($this->fix)) { - $this->__construct($this->fix[0]); - unset($this->fix); - } else { - parent::__wakeup(); - } - } - }