Skip to content

Commit

Permalink
Merge pull request #12803 from juliangums/patch-1
Browse files Browse the repository at this point in the history
Change type hint for chart data
  • Loading branch information
danharrin authored May 15, 2024
2 parents a7a7723 + 2ec30cb commit 519e5dc
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

Check failure on line 158 in packages/widgets/src/StatsOverviewWidget/Stat.php

View workflow job for this annotation

GitHub Actions / P8.3 - L11.* - prefer-stable

Method Filament\Widgets\StatsOverviewWidget\Stat::chart() has parameter $chart with no value type specified in iterable type array.

Check failure on line 158 in packages/widgets/src/StatsOverviewWidget/Stat.php

View workflow job for this annotation

GitHub Actions / P8.3 - L11.* - prefer-stable

PHPDoc tag @param has invalid value (array<float> | null): Unexpected token "\n ", expected variable at offset 38

Check failure on line 158 in packages/widgets/src/StatsOverviewWidget/Stat.php

View workflow job for this annotation

GitHub Actions / P8.3 - L10.* - prefer-stable

Method Filament\Widgets\StatsOverviewWidget\Stat::chart() has parameter $chart with no value type specified in iterable type array.

Check failure on line 158 in packages/widgets/src/StatsOverviewWidget/Stat.php

View workflow job for this annotation

GitHub Actions / P8.3 - L10.* - prefer-stable

PHPDoc tag @param has invalid value (array<float> | null): Unexpected token "\n ", expected variable at offset 38

Check failure on line 158 in packages/widgets/src/StatsOverviewWidget/Stat.php

View workflow job for this annotation

GitHub Actions / P8.2 - L11.* - prefer-stable

Method Filament\Widgets\StatsOverviewWidget\Stat::chart() has parameter $chart with no value type specified in iterable type array.

Check failure on line 158 in packages/widgets/src/StatsOverviewWidget/Stat.php

View workflow job for this annotation

GitHub Actions / P8.2 - L11.* - prefer-stable

PHPDoc tag @param has invalid value (array<float> | null): Unexpected token "\n ", expected variable at offset 38

Check failure on line 158 in packages/widgets/src/StatsOverviewWidget/Stat.php

View workflow job for this annotation

GitHub Actions / P8.2 - L10.* - prefer-stable

Method Filament\Widgets\StatsOverviewWidget\Stat::chart() has parameter $chart with no value type specified in iterable type array.

Check failure on line 158 in packages/widgets/src/StatsOverviewWidget/Stat.php

View workflow job for this annotation

GitHub Actions / P8.2 - L10.* - prefer-stable

PHPDoc tag @param has invalid value (array<float> | null): Unexpected token "\n ", expected variable at offset 38

Check failure on line 158 in packages/widgets/src/StatsOverviewWidget/Stat.php

View workflow job for this annotation

GitHub Actions / P8.1 - L10.* - prefer-stable

Method Filament\Widgets\StatsOverviewWidget\Stat::chart() has parameter $chart with no value type specified in iterable type array.

Check failure on line 158 in packages/widgets/src/StatsOverviewWidget/Stat.php

View workflow job for this annotation

GitHub Actions / P8.1 - L10.* - prefer-stable

PHPDoc tag @param has invalid value (array<float> | null): Unexpected token "\n ", expected variable at offset 38
{
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 519e5dc

Please sign in to comment.