influxdata/influxdb-php

TypeError with php 8.1

webmake opened this issue · 0 comments

Hello,
since php 8.1 some tests are failing with TypeErrors:
image

stream_socket_sendto(): Argument #1 ($socket) must be of type resource, bool given

    public function write($data = null)
    {
        if (isset($this->stream) === false) {
            $this->createStream();
        }

        @stream_socket_sendto($this->stream, $data);

        return true;
    }

"influxdb/influxdb-php": "1.15.2",