influxdata/influxdb-php

InfluxDB2\FluxRecord getValue() can spit out a PHP “Undefined Index” Notice

Closed this issue · 1 comments

When executing a query that yields no _value, calling getValue() on a InfluxDB2\FluxRecord spits out a PHP Notice:

Undefined index: _value in vendor/influxdata/influxdb-client-php/src/InfluxDB2/FluxRecord.php on line 45

This should be suppressed, as a returned record might not contain this field (e.g. after a map, column drop, pivot, etc.)

Oops, wrong repo … should be https://github.com/influxdata/influxdb-client-php/ 😅