Skip to content

Commit f82c1c4

Browse files
committed
Missed default case where $features is a FeatureSet
Signed-off-by: Joey Smith <jsmith@webinertia.net> Signed-off-by: Joey Smith <jsmith@webinertia.net>
1 parent abf7549 commit f82c1c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/TableGateway/TableGateway.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ public function __construct(
3232
/** @phpstan-ignore match.unhandled */
3333
$this->featureSet = match (true) {
3434
$features instanceof Feature\AbstractFeature => new Feature\FeatureSet([$features]),
35-
is_array($features) => new Feature\FeatureSet($features),
35+
is_array($features) => new Feature\FeatureSet($features),
36+
default => $features,
3637
};
3738

3839
// result prototype

0 commit comments

Comments
 (0)