Skip to content

Commit

Permalink
Clone method missing
Browse files Browse the repository at this point in the history
  • Loading branch information
choval committed Nov 22, 2019
1 parent e4c29e0 commit 2764fe3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/DateTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,16 @@ public function __toString()



/**
* Clone method
*/
public function __clone() {
$this->obj = clone $this->obj;
$this->tzobj = clone $this->tzobj;
}



/**
* Sleep
*/
Expand Down

0 comments on commit 2764fe3

Please sign in to comment.