Merge pull request #12803 from juliangums/patch-1

Change type hint for chart data
This commit is contained in:
Dan Harrin
2024-05-15 12:36:03 +01:00
committed by GitHub
@@ -13,7 +13,7 @@ use Illuminate\View\ComponentAttributeBag;
class Stat extends Component implements Htmlable
{
/**
* @var array<string, mixed> | null
* @var array<float> | null
*/
protected ?array $chart = null;
@@ -153,7 +153,7 @@ class Stat extends Component implements Htmlable
}
/**
* @param array<int> | null $chart
* @param array<float> | null
*/
public function chart(?array $chart): static
{
@@ -187,7 +187,7 @@ class Stat extends Component implements Htmlable
}
/**
* @return array<string, mixed> | null
* @return array<float> | null
*/
public function getChart(): ?array
{