1
0
mirror of https://github.com/danog/postgres.git synced 2024-11-30 04:29:12 +01:00

Remove circular reference

This commit is contained in:
Aaron Piotrowski 2019-04-04 15:36:25 -05:00
parent 0b530983c2
commit 8a6767f99e
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB

View File

@ -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);
});
}