Skip to content

Commit

Permalink
Change type hint for chart data
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangums authored May 15, 2024
1 parent a7a7723 commit 2ec30cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/widgets/src/StatsOverviewWidget/Stat.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
class Stat extends Component implements Htmlable
{
/**
* @var array<string, mixed> | null
* @var array<float> | null
*/
protected ?array $chart = null;

Expand Down Expand Up @@ -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
{
Expand Down Expand Up @@ -187,7 +187,7 @@ public function value($value): static
}

/**
* @return array<string, mixed> | null
* @return array<float> | null
*/
public function getChart(): ?array
{
Expand Down

0 comments on commit 2ec30cb

Please sign in to comment.