Skip to content

Commit 96786eb

Browse files
committed
updates to decimal support
1 parent 315004b commit 96786eb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"require": {
2323
"php": "^8.1",
2424
"filament/filament": "^2.0",
25-
"spatie/laravel-package-tools": "^1.13.5"
25+
"spatie/laravel-package-tools": "^1.13.5",
26+
"ext-bcmath": "*"
2627
},
2728
"require-dev": {
2829
"laravel/pint": "^1.0",

src/Overlook.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function getData(): array
6262
->toArray();
6363
}
6464

65-
public function formatRawCount($number): string
65+
public function formatRawCount(string $number): string
6666
{
6767
return number_format($number);
6868
}
@@ -87,7 +87,7 @@ public function convertCount(string $number): string
8787
return $number;
8888
}
8989

90-
public function shouldShowTooltip($number): bool
90+
public function shouldShowTooltip(string $number): bool
9191
{
9292
return strlen($number) >= 4 && config('overlook.should_convert_count') && config('overlook.enable_convert_tooltip');
9393
}

0 commit comments

Comments
 (0)