From fa1f1ae15f660204ea91e953b61b1505a6095444 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20lombardot?= Date: Wed, 5 Mar 2025 17:37:33 +0100 Subject: [PATCH] Fix php deprecation - Implicitly marking parameter as nullable is deprecated Deprecated: InfluxDB2\Client::createWriteApi(): Implicitly marking parameter $writeOptions as nullable is deprecated, the explicit nullable type must be used instead in /Users/cedriclombardot/getallmylinks/vendor/influxdata/influxdb-client-php/src/InfluxDB2/Client.php on line 76 Deprecated: InfluxDB2\Client::createWriteApi(): Implicitly marking parameter $pointSettings as nullable is deprecated, the explicit nullable type must be used instead in /Users/cedriclombardot/getallmylinks/vendor/influxdata/influxdb-client-php/src/InfluxDB2/Client.php on line 76 --- src/InfluxDB2/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/InfluxDB2/Client.php b/src/InfluxDB2/Client.php index 7ec7b904..613cb6f8 100644 --- a/src/InfluxDB2/Client.php +++ b/src/InfluxDB2/Client.php @@ -73,7 +73,7 @@ public function __construct(array $options) * @param array|null $pointSettings Array of default tags * @return WriteApi */ - public function createWriteApi(array $writeOptions = null, array $pointSettings = null): WriteApi + public function createWriteApi(?array $writeOptions = null, ?array $pointSettings = null): WriteApi { $writeApi = new WriteApi($this->options, $writeOptions, $pointSettings); $this->autoCloseable[] = $writeApi;