From 8a6767f99eebc43e41e8fda36897d3c6653d3cdc Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Thu, 4 Apr 2019 15:36:25 -0500 Subject: [PATCH] Remove circular reference --- src/Connection.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Connection.php b/src/Connection.php index f1b4b76..558b04b 100644 --- a/src/Connection.php +++ b/src/Connection.php @@ -21,9 +21,6 @@ abstract class Connection implements Link, Handle /** @var Deferred|null Used to only allow one transaction at a time. */ private $busy; - /** @var callable */ - protected $release; - /** * @param ConnectionConfig $connectionConfig * @param CancellationToken $token @@ -38,7 +35,6 @@ abstract class Connection implements Link, Handle public function __construct(Handle $handle) { $this->handle = $handle; - $this->release = $this->callableFromInstanceMethod("release"); } @@ -213,7 +209,7 @@ abstract class Connection implements Link, Handle $this->busy = new Deferred; - return new ConnectionTransaction($this->handle, $this->release, $isolation); + return new ConnectionTransaction($this->handle, $this->callableFromInstanceMethod("release"), $isolation); }); }