Skip to content

Commit

Permalink
Merge pull request #26 from 99designs/cloneable-url-builder
Browse files Browse the repository at this point in the history
Fix UrlBuilder to work better with PHP clone operator
  • Loading branch information
dhotson authored Jan 23, 2017
2 parents d9551a0 + 9543626 commit 7b32a4b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Thumbor/Url/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ public function __construct($server, $secret, $original)
$this->commands = new CommandSet();
}

public function __clone()
{
$this->commands = clone $this->commands;
}

// Proxy remaining method calls to CommandSet
public function __call($method, $args)
{
Expand Down

0 comments on commit 7b32a4b

Please sign in to comment.