From af0f7694410656ad78bff8d28a3ae677261fdefd Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Sun, 17 Dec 2023 10:33:22 -0600 Subject: [PATCH] Update for amphp/sql-common@v2.0.0-beta.9 --- composer.json | 2 +- src/Internal/PostgresPooledResult.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 7a84b8f..140bb42 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "amphp/amp": "^3", "amphp/pipeline": "^1", "amphp/sql": "^2-beta.6", - "amphp/sql-common": "^2-beta.7" + "amphp/sql-common": "^2-beta.9" }, "require-dev": { "ext-pgsql": "*", diff --git a/src/Internal/PostgresPooledResult.php b/src/Internal/PostgresPooledResult.php index 26214ac..be9258a 100644 --- a/src/Internal/PostgresPooledResult.php +++ b/src/Internal/PostgresPooledResult.php @@ -13,7 +13,7 @@ */ final class PostgresPooledResult extends PooledResult implements PostgresResult { - protected function newInstanceFrom(Result $result, \Closure $release): self + protected static function newInstanceFrom(Result $result, \Closure $release): self { \assert($result instanceof PostgresResult); return new self($result, $release);