fix creation of new household during move

This commit is contained in:
2021-06-10 11:48:06 +02:00
parent 057bdf6a6a
commit 6fed008ff2
3 changed files with 7 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ class MembersEditorNormalizer implements DenormalizerInterface, DenormalizerAwar
$editor = $this->factory->createEditor($household);
if (NULL == $data['concerned'] ?? []
if (NULL == $data['concerned'] ?? NULL
&& FALSE === ·\is_array('concerned')) {
throw new Exception\UnexpectedValueException("The schema does not have any key 'concerned'");
}