Skip to content

Commit b91ce9c

Browse files
authored
Merge pull request #109 from tyrsson/patch-tablegateway
Missed default case where $features is a FeatureSet
2 parents abf7549 + 9d0ace3 commit b91ce9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TableGateway/TableGateway.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ public function __construct(
2929
// adapter
3030
$this->adapter = $adapter;
3131

32-
/** @phpstan-ignore match.unhandled */
3332
$this->featureSet = match (true) {
3433
$features instanceof Feature\AbstractFeature => new Feature\FeatureSet([$features]),
35-
is_array($features) => new Feature\FeatureSet($features),
34+
is_array($features) => new Feature\FeatureSet($features),
35+
default => $features,
3636
};
3737

3838
// result prototype

0 commit comments

Comments
 (0)