Skip to content

Commit

Permalink
[#4] Update DbalFeatureRepository::remove contract with a Feature ins…
Browse files Browse the repository at this point in the history
…tead of FeatureId
  • Loading branch information
xserrat committed Oct 6, 2021
1 parent b1dc57f commit 5fc686e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Write/DbalFeatureRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ public function get(FeatureId $featureId): Feature
return DbalFeatureFactory::createFromDbalRepresentation($featureData);
}

public function remove(FeatureId $featureId): void
public function remove(Feature $feature): void
{
$this->connection->delete(
self::TABLE,
[
'feature_id' => $featureId->value()
'feature_id' => $feature->id()
]
);
}
Expand Down

0 comments on commit 5fc686e

Please sign in to comment.