influxdb-php icon indicating copy to clipboard operation
influxdb-php copied to clipboard

TypeError with php 8.1

Open webmake opened this issue 2 years ago • 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",

webmake avatar Mar 10 '22 14:03 webmake