From 2764fe389e00689497f5a74eceb7466f281176f5 Mon Sep 17 00:00:00 2001 From: Osvaldo Jiang Date: Fri, 22 Nov 2019 10:18:02 -0300 Subject: [PATCH] Clone method missing --- src/DateTime.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/DateTime.php b/src/DateTime.php index 0cdf03e..f53fcf4 100644 --- a/src/DateTime.php +++ b/src/DateTime.php @@ -207,6 +207,16 @@ public function __toString() + /** + * Clone method + */ + public function __clone() { + $this->obj = clone $this->obj; + $this->tzobj = clone $this->tzobj; + } + + + /** * Sleep */