-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
Change type hint for chart data
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
class Stat extends Component implements Htmlable | ||
{ | ||
/** | ||
* @var array<string, mixed> | null | ||
* @var array<float> | null | ||
*/ | ||
protected ?array $chart = null; | ||
|
||
|
@@ -153,7 +153,7 @@ public function url(?string $url, bool $shouldOpenInNewTab = false): static | |
} | ||
|
||
/** | ||
* @param array<int> | null $chart | ||
* @param array<float> | null | ||
*/ | ||
public function chart(?array $chart): static | ||
Check failure on line 158 in packages/widgets/src/StatsOverviewWidget/Stat.php GitHub Actions / P8.3 - L11.* - prefer-stable
Check failure on line 158 in packages/widgets/src/StatsOverviewWidget/Stat.php GitHub Actions / P8.3 - L11.* - prefer-stable
Check failure on line 158 in packages/widgets/src/StatsOverviewWidget/Stat.php GitHub Actions / P8.3 - L10.* - prefer-stable
Check failure on line 158 in packages/widgets/src/StatsOverviewWidget/Stat.php GitHub Actions / P8.3 - L10.* - prefer-stable
Check failure on line 158 in packages/widgets/src/StatsOverviewWidget/Stat.php GitHub Actions / P8.2 - L11.* - prefer-stable
Check failure on line 158 in packages/widgets/src/StatsOverviewWidget/Stat.php GitHub Actions / P8.2 - L11.* - prefer-stable
Check failure on line 158 in packages/widgets/src/StatsOverviewWidget/Stat.php GitHub Actions / P8.2 - L10.* - prefer-stable
Check failure on line 158 in packages/widgets/src/StatsOverviewWidget/Stat.php GitHub Actions / P8.2 - L10.* - prefer-stable
Check failure on line 158 in packages/widgets/src/StatsOverviewWidget/Stat.php GitHub Actions / P8.1 - L10.* - prefer-stable
Check failure on line 158 in packages/widgets/src/StatsOverviewWidget/Stat.php GitHub Actions / P8.1 - L10.* - prefer-stable
|
||
{ | ||
|
@@ -187,7 +187,7 @@ public function value($value): static | |
} | ||
|
||
/** | ||
* @return array<string, mixed> | null | ||
* @return array<float> | null | ||
*/ | ||
public function getChart(): ?array | ||
{ | ||
|