lib/Mysql/Statement.php
public function close(): void
    {
        if ($this->stmt === null) {
            throw new \Exception('Statement has already been closed');
        }

        if (!$this->stmt->close()) {
            throw new SqlException('Failed to close statement', $this->stmt->error_list, $this->query, $this->params);
        }

        $this->stmt = null;
        $this->meta = null;
    }
public function close(): void
    {
        if ($this->stmt === null) {
            throw new \Exception('Statement has already been closed');
        }

        if (!$this->stmt->close()) {
            throw new SqlException('Failed to close statement', $this->stmt->error_list, $this->query, $this->params);
        }

        $this->stmt = null;
        $this->meta = null;
    }
public function close ( ) : void { if ( $ this -> stmt === null ) { throw new \ Exception ( 'Statement has already been closed' ) ; } if ( ! $ this -> stmt -> close ( ) ) { throw new SqlException ( 'Failed to close statement' , $ this -> stmt -> error_list , $ this -> query , $ this -> params ) ; } $ this -> stmt = null ; $ this -> meta = null ; }
Closes the prepared statement and deallocates the statement handle.
@throws SqlException if failure closing the statement
Closes the prepared statement and deallocates the statement handle .