Skip to content

Commit

Permalink
Update Cursor.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mrVrAlex committed Jun 2, 2022
1 parent b7ba459 commit 73b8d00
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/Swoole/PgSQL/Cursor.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,4 @@ public function close() : void
$this->connection->executeStatement('CLOSE ' . $this->cursorName);
$this->isOpen = false;
}

public function __destruct()
{
if ($this->isOpen) {
$this->close();
}
}
}

0 comments on commit 73b8d00

Please sign in to comment.