Skip to content

Commit

Permalink
Fixing issue not having a type hint of float
Browse files Browse the repository at this point in the history
  • Loading branch information
lukepolo committed Nov 2, 2015
1 parent 9773e9f commit 5feb376
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 5feb376

Please sign in to comment.