-
Notifications
You must be signed in to change notification settings - Fork 110
Closed
Description
Description
PHP 8.4 has deprecated implicitly marking parameters as nullable.
vendor/promphp/prometheus_client_php/src/Prometheus/RegistryInterface.php:94 Prometheus\RegistryInterface::registerHistogram(): Implicitly marking parameter $buckets as nullable is deprecated, the explicit nullable type must be used insteadThese deprecation warnings could be fixed like this I think:
public function registerHistogram(
string $namespace,
string $name,
string $help,
array $labels = [],
- array $buckets = null
+ ?array $buckets = null
): Histogram;Support for nullable types has been around since PHP 7.1.
Links
Metadata
Metadata
Assignees
Labels
No labels