diff --git a/src/Controllers/HumanResourcesEmployeeController.php b/src/Controllers/HumanResourcesEmployeeController.php index d26b1a4..7eebca9 100644 --- a/src/Controllers/HumanResourcesEmployeeController.php +++ b/src/Controllers/HumanResourcesEmployeeController.php @@ -158,17 +158,17 @@ public function update(int $id, array $attributes): JsonResponse * attribute. * * @param array $attributes - * * @return array */ private function fixEmptyNationalitiesData(array $attributes): array { if (isset($attributes['nationalities'])) { $nationalities = $attributes['nationalities']; - if (count($nationalities)==1 && empty($nationalities[0])) { + if (count($nationalities) == 1 && empty($nationalities[0])) { unset($attributes['nationalities']); } } + return $attributes; } }