Skip to content

Commit

Permalink
Merge pull request #13 from lukepolo/lukepolo-patch-2
Browse files Browse the repository at this point in the history
Fixing issue not having a type hint of float
  • Loading branch information
lukepolo committed Nov 2, 2015
2 parents 5ab2c18 + 5feb376 commit 543e324
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LaraCart.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function get($instance = 'default')
*
* @return string
*/
public function formatMoney($number, $locale = null, $internationalFormat = null)
public function formatMoney(float $number, $locale = null, $internationalFormat = null)
{
if (empty($locale) === true) {
$locale = config('laracart.locale', 'en_US');
Expand Down Expand Up @@ -113,4 +113,4 @@ public function __call($method, $args)
$method
], $args);
}
}
}

0 comments on commit 543e324

Please sign in to comment.