Skip to content

Commit

Permalink
Fixed copy method carrying across config.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrushton committed Jun 4, 2016
1 parent b28e62e commit d6e1ef8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Distance.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static function fromSteps($distance)

public function copy()
{
return new static($this->value, $this->unit);
return new static($this->value, $this->unit, $this->config);
}

/* Getters and Setters */
Expand Down

0 comments on commit d6e1ef8

Please sign in to comment.