Skip to content

Commit

Permalink
Update Cart.php
Browse files Browse the repository at this point in the history
Adding a default to getFee
  • Loading branch information
lukepolo committed Oct 21, 2015
1 parent 4856703 commit 48cdc4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ public function getFees()
*/
public function getFee($name)
{
return array_get($this->fees, $name);
return array_get($this->fees, $name, new CartFee(null, false));
}

/**
Expand Down

0 comments on commit 48cdc4c

Please sign in to comment.