Skip to content

Commit

Permalink
Correct bug
Browse files Browse the repository at this point in the history
  • Loading branch information
amouhzi committed May 3, 2014
1 parent efb55ee commit 0a2dd57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Weight/Unit.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ public function __construct($unit)

public static function __set_state($values)
{
return new Unit($values['unit']);
return new Unit($values['value']);
}

public function __toString()
Expand Down Expand Up @@ -484,4 +484,4 @@ public function grams()
{
return $this->value;
}
}
}

0 comments on commit 0a2dd57

Please sign in to comment.