Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## 3.8.0 [unreleased]

### Bug Fixes
1. [#166](https://github.com/influxdata/influxdb-client-php/pull/166): Fix PHP 8.4 deprecated implicit nullable arguments. PHP minimum version is still PHP 7.2.

## 3.7.0 [2025-02-21]

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion src/InfluxDB2/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions src/InfluxDB2/InvokableScriptsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function deleteScript(string $scriptId)
*
* @return Script[]
*/
public function findScripts(int $limit = null, int $offset = null): array
public function findScripts(?int $limit = null, ?int $offset = null): array
{
return $this->service->getScripts($limit, $offset)->getScripts();
}
Expand All @@ -87,7 +87,7 @@ public function findScripts(int $limit = null, int $offset = null): array
* @param array<string,object>|null $params Represent key/value pairs parameters to be injected into script
* @return FluxTable[]
*/
public function invokeScript(string $scriptId, array $params = null): ?array
public function invokeScript(string $scriptId, ?array $params = null): ?array
{
$response = $this->invokeScriptRaw($scriptId, $params);

Expand All @@ -104,7 +104,7 @@ public function invokeScript(string $scriptId, array $params = null): ?array
* @param array<string,object>|null $params Represent key/value pairs parameters to be injected into script
* @return FluxCsvParser generator of FluxRecords
*/
public function invokeScriptStream(string $scriptId, array $params = null): FluxCsvParser
public function invokeScriptStream(string $scriptId, ?array $params = null): FluxCsvParser
{
$invocation_params = new ScriptInvocationParams();
$invocation_params->setParams($params);
Expand All @@ -121,7 +121,7 @@ public function invokeScriptStream(string $scriptId, array $params = null): Flux
* @param array|null $params Represent key/value pairs parameters to be injected into script
* @return string
*/
public function invokeScriptRaw(string $scriptId, array $params = null): ?string
public function invokeScriptRaw(string $scriptId, ?array $params = null): ?string
{
$invocation_params = new ScriptInvocationParams();
$invocation_params->setParams($params);
Expand Down
8 changes: 4 additions & 4 deletions src/InfluxDB2/Model/ASTResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint.
*
* OpenAPI spec version: 2.0.0
*
*
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.3.4
*/
Expand Down Expand Up @@ -159,9 +159,9 @@ public function getModelName()
return self::$openAPIModelName;
}







/**
* Associative array for storing property values
Expand All @@ -176,7 +176,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->container['ast'] = isset($data['ast']) ? $data['ast'] : null;
}
Expand Down
8 changes: 4 additions & 4 deletions src/InfluxDB2/Model/AddResourceMemberRequestBody.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint.
*
* OpenAPI spec version: 2.0.0
*
*
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.3.4
*/
Expand Down Expand Up @@ -163,9 +163,9 @@ public function getModelName()
return self::$openAPIModelName;
}







/**
* Associative array for storing property values
Expand All @@ -180,7 +180,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->container['id'] = isset($data['id']) ? $data['id'] : null;
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
Expand Down
8 changes: 4 additions & 4 deletions src/InfluxDB2/Model/AnalyzeQueryResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint.
*
* OpenAPI spec version: 2.0.0
*
*
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.3.4
*/
Expand Down Expand Up @@ -158,9 +158,9 @@ public function getModelName()
return self::$openAPIModelName;
}







/**
* Associative array for storing property values
Expand All @@ -175,7 +175,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->container['errors'] = isset($data['errors']) ? $data['errors'] : null;
}
Expand Down
8 changes: 4 additions & 4 deletions src/InfluxDB2/Model/AnalyzeQueryResponseErrors.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint.
*
* OpenAPI spec version: 2.0.0
*
*
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.3.4
*/
Expand Down Expand Up @@ -173,9 +173,9 @@ public function getModelName()
return self::$openAPIModelName;
}







/**
* Associative array for storing property values
Expand All @@ -190,7 +190,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->container['line'] = isset($data['line']) ? $data['line'] : null;
$this->container['column'] = isset($data['column']) ? $data['column'] : null;
Expand Down
10 changes: 5 additions & 5 deletions src/InfluxDB2/Model/ArrayExpression.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint.
*
* OpenAPI spec version: 2.0.0
*
*
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.3.4
*/
Expand All @@ -39,7 +39,7 @@
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class ArrayExpression extends Expression
class ArrayExpression extends Expression
{
const DISCRIMINATOR = null;

Expand Down Expand Up @@ -162,9 +162,9 @@ public function getModelName()
return self::$openAPIModelName;
}








/**
Expand All @@ -173,7 +173,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
parent::__construct($data);

Expand Down
10 changes: 5 additions & 5 deletions src/InfluxDB2/Model/Authorization.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint.
*
* OpenAPI spec version: 2.0.0
*
*
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.3.4
*/
Expand All @@ -38,7 +38,7 @@
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class Authorization extends AuthorizationUpdateRequest
class Authorization extends AuthorizationUpdateRequest
{
const DISCRIMINATOR = null;

Expand Down Expand Up @@ -201,9 +201,9 @@ public function getModelName()
return self::$openAPIModelName;
}








/**
Expand All @@ -212,7 +212,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
parent::__construct($data);

Expand Down
8 changes: 4 additions & 4 deletions src/InfluxDB2/Model/AuthorizationLinks.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint.
*
* OpenAPI spec version: 2.0.0
*
*
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.3.4
*/
Expand Down Expand Up @@ -163,9 +163,9 @@ public function getModelName()
return self::$openAPIModelName;
}







/**
* Associative array for storing property values
Expand All @@ -180,7 +180,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->container['self'] = isset($data['self']) ? $data['self'] : null;
$this->container['user'] = isset($data['user']) ? $data['user'] : null;
Expand Down
10 changes: 5 additions & 5 deletions src/InfluxDB2/Model/AuthorizationPostRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint.
*
* OpenAPI spec version: 2.0.0
*
*
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.3.4
*/
Expand All @@ -38,7 +38,7 @@
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class AuthorizationPostRequest extends AuthorizationUpdateRequest
class AuthorizationPostRequest extends AuthorizationUpdateRequest
{
const DISCRIMINATOR = null;

Expand Down Expand Up @@ -166,9 +166,9 @@ public function getModelName()
return self::$openAPIModelName;
}








/**
Expand All @@ -177,7 +177,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
parent::__construct($data);

Expand Down
10 changes: 5 additions & 5 deletions src/InfluxDB2/Model/AuthorizationUpdateRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint.
*
* OpenAPI spec version: 2.0.0
*
*
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.3.4
*/
Expand Down Expand Up @@ -165,9 +165,9 @@ public function getModelName()

const STATUS_ACTIVE = 'active';
const STATUS_INACTIVE = 'inactive';





/**
* Gets allowable values of the enum
*
Expand All @@ -180,7 +180,7 @@ public function getStatusAllowableValues()
self::STATUS_INACTIVE,
];
}


/**
* Associative array for storing property values
Expand All @@ -195,7 +195,7 @@ public function getStatusAllowableValues()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->container['status'] = isset($data['status']) ? $data['status'] : 'active';
$this->container['description'] = isset($data['description']) ? $data['description'] : null;
Expand Down
8 changes: 4 additions & 4 deletions src/InfluxDB2/Model/Authorizations.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint.
*
* OpenAPI spec version: 2.0.0
*
*
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.3.4
*/
Expand Down Expand Up @@ -163,9 +163,9 @@ public function getModelName()
return self::$openAPIModelName;
}







/**
* Associative array for storing property values
Expand All @@ -180,7 +180,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->container['links'] = isset($data['links']) ? $data['links'] : null;
$this->container['authorizations'] = isset($data['authorizations']) ? $data['authorizations'] : null;
Expand Down
Loading