From f82c1c42cc35fbc3c46e17d01adab8411631526e Mon Sep 17 00:00:00 2001 From: Joey Smith Date: Fri, 9 Jan 2026 03:25:28 -0600 Subject: [PATCH 1/2] Missed default case where $features is a FeatureSet Signed-off-by: Joey Smith Signed-off-by: Joey Smith --- src/TableGateway/TableGateway.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/TableGateway/TableGateway.php b/src/TableGateway/TableGateway.php index 7c6cf4ce..6d255e96 100644 --- a/src/TableGateway/TableGateway.php +++ b/src/TableGateway/TableGateway.php @@ -32,7 +32,8 @@ public function __construct( /** @phpstan-ignore match.unhandled */ $this->featureSet = match (true) { $features instanceof Feature\AbstractFeature => new Feature\FeatureSet([$features]), - is_array($features) => new Feature\FeatureSet($features), + is_array($features) => new Feature\FeatureSet($features), + default => $features, }; // result prototype From 9d0ace3beeff7dc03bd4af51ccb23e95f447288e Mon Sep 17 00:00:00 2001 From: Joey Smith Date: Fri, 9 Jan 2026 03:33:28 -0600 Subject: [PATCH 2/2] Signed-off-by: Joey Smith --- src/TableGateway/TableGateway.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/TableGateway/TableGateway.php b/src/TableGateway/TableGateway.php index 6d255e96..c429b5a5 100644 --- a/src/TableGateway/TableGateway.php +++ b/src/TableGateway/TableGateway.php @@ -29,7 +29,6 @@ public function __construct( // adapter $this->adapter = $adapter; - /** @phpstan-ignore match.unhandled */ $this->featureSet = match (true) { $features instanceof Feature\AbstractFeature => new Feature\FeatureSet([$features]), is_array($features) => new Feature\FeatureSet($features),