Skip to content

Commit

Permalink
updates to decimal support
Browse files Browse the repository at this point in the history
  • Loading branch information
awcodes committed May 16, 2023
1 parent 315004b commit 96786eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"require": {
"php": "^8.1",
"filament/filament": "^2.0",
"spatie/laravel-package-tools": "^1.13.5"
"spatie/laravel-package-tools": "^1.13.5",
"ext-bcmath": "*"
},
"require-dev": {
"laravel/pint": "^1.0",
Expand Down
4 changes: 2 additions & 2 deletions src/Overlook.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function getData(): array
->toArray();
}

public function formatRawCount($number): string
public function formatRawCount(string $number): string
{
return number_format($number);
}
Expand All @@ -87,7 +87,7 @@ public function convertCount(string $number): string
return $number;
}

public function shouldShowTooltip($number): bool
public function shouldShowTooltip(string $number): bool
{
return strlen($number) >= 4 && config('overlook.should_convert_count') && config('overlook.enable_convert_tooltip');
}
Expand Down

0 comments on commit 96786eb

Please sign in to comment.