Skip to content

Commit

Permalink
Fix transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Jan 10, 2024
1 parent 3e8779a commit 18ff614
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AbstractConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ abstract class AbstractConnection implements ConnectionInterface
* The connection pool instance must store in WeakReference to prevent circular reference
* and memory leak.
*
* @var \WeakReference|null
* @var \WeakReference<AbstractPool>|null
*/
protected ?\WeakReference $pool = null;

Expand Down Expand Up @@ -117,7 +117,7 @@ public function __destruct()
sprintf(
'Connection ID: %s in pool: %s was not released but destruct.',
$this->getId(),
$this->pool::class
$this->pool?->get()::class
),
E_USER_WARNING
);
Expand Down

0 comments on commit 18ff614

Please sign in to comment.