From 3f36bb26ee32c77a18e6eb0e6800d62358e133c2 Mon Sep 17 00:00:00 2001 From: juniwalk Date: Thu, 2 Jun 2022 15:51:59 +0200 Subject: [PATCH] Do not store null params --- src/Entity/Record.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Entity/Record.php b/src/Entity/Record.php index 9068fcf..d2f5e00 100644 --- a/src/Entity/Record.php +++ b/src/Entity/Record.php @@ -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; }