From ca11796cc191c87c96bd46f27dad38be58fd39be Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Tue, 21 Jun 2022 16:50:30 -0500 Subject: [PATCH] Extend Closable in TransientResource --- src/TransientResource.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/TransientResource.php b/src/TransientResource.php index 8b12ed1..cb97f79 100644 --- a/src/TransientResource.php +++ b/src/TransientResource.php @@ -2,13 +2,10 @@ namespace Amp\Sql; -interface TransientResource -{ - /** - * Indicates if the resource is still valid. - */ - public function isAlive(): bool; +use Amp\Closable; +interface TransientResource extends Closable +{ /** * Get the timestamp of the last usage of this resource. *