You've already forked pilot-sdk
php 8.4 support
This commit is contained in:
@@ -62,12 +62,12 @@ abstract class Metric extends Widget
|
||||
];
|
||||
}
|
||||
|
||||
public function filter($label, $value, callable $callback)
|
||||
public function filter(string $label, $value, callable $callback)
|
||||
{
|
||||
return ['label' => $label, 'value' => $value, 'callback' => $callback];
|
||||
}
|
||||
|
||||
public function filters($filters)
|
||||
public function filters(array $filters)
|
||||
{
|
||||
return $this->resolveFilter($filters);
|
||||
}
|
||||
@@ -81,7 +81,7 @@ abstract class Metric extends Widget
|
||||
];
|
||||
}
|
||||
|
||||
public function trend($values)
|
||||
public function trend(array $values)
|
||||
{
|
||||
return [
|
||||
'type' => 'trend',
|
||||
@@ -89,7 +89,7 @@ abstract class Metric extends Widget
|
||||
];
|
||||
}
|
||||
|
||||
public function partition($values)
|
||||
public function partition(array $values)
|
||||
{
|
||||
return [
|
||||
'type' => 'partition',
|
||||
@@ -106,7 +106,7 @@ abstract class Metric extends Widget
|
||||
];
|
||||
}
|
||||
|
||||
public function monitor($available)
|
||||
public function monitor(bool $available)
|
||||
{
|
||||
return [
|
||||
'type' => 'monitor',
|
||||
|
||||
Reference in New Issue
Block a user