From 03930d53012138a6461cbd775c2408c575aa1ef4 Mon Sep 17 00:00:00 2001 From: karel rehor Date: Thu, 20 Feb 2025 13:32:47 +0100 Subject: [PATCH 1/2] chore: fix implicitly nullable parameter types --- src/InfluxDB2/WritePayloadSerializer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/InfluxDB2/WritePayloadSerializer.php b/src/InfluxDB2/WritePayloadSerializer.php index 3aa339a6..3347bda4 100644 --- a/src/InfluxDB2/WritePayloadSerializer.php +++ b/src/InfluxDB2/WritePayloadSerializer.php @@ -15,7 +15,7 @@ class WritePayloadSerializer * @param int|null $writeType specify type of writes - WriteType::SYNCHRONOUS or WriteType::BATCHING * @return BatchItem|string|null */ - public static function generatePayload($data, string $precision = null, string $bucket = null, string $org = null, int $writeType = null) + public static function generatePayload($data, ?string $precision = null, ?string $bucket = null, ?string $org = null, ?int $writeType = null) { if ($data == null || empty($data)) { return null; From 6f6bc8ff85d94fa6d36dc03c0047d2f2bd3d6217 Mon Sep 17 00:00:00 2001 From: karel rehor Date: Thu, 20 Feb 2025 13:51:36 +0100 Subject: [PATCH 2/2] docs: update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 16d9ca8b..7825e5be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ### Bug Fixes 1. [#162](https://github.com/influxdata/influxdb-client-php/issues/162): PHP 8.4 - fgetcsv() needs provide explicitly argument escape +2. [#164](https://github.com/influxdata/influxdb-client-php/pull/164): Fixes deprecation warnings about implicitly nullable arguments ## 3.6.0 [2024-06-24]