Skip to content

Commit

Permalink
Do not store null params
Browse files Browse the repository at this point in the history
  • Loading branch information
juniwalk committed Jun 2, 2022
1 parent bffe15a commit 3f36bb2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Entity/Record.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ public function isFinishable(): bool
*/
public function setParams(iterable $params): void
{
$params = array_filter($params, function($v): bool {
return !is_null($v);
});

$this->params = $params ?: null;
}

Expand Down

0 comments on commit 3f36bb2

Please sign in to comment.