Skip to content

Commit

Permalink
fix: Replace null comparison with isset
Browse files Browse the repository at this point in the history
  • Loading branch information
Nattfarinn committed Aug 7, 2024
1 parent 1f45c9e commit e72fd75
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ public function updateFields(Content $content, UpdateStruct $updateStruct, Type
if (isset($updateFieldMap[$fieldDefinition->id][$languageCode])) {
$field = clone $updateFieldMap[$fieldDefinition->id][$languageCode];
$field->versionNo = $content->versionInfo->versionNo;
if (null !== $field->id && array_key_exists($field->languageCode, $existingLanguageCodes)) {
if (isset($field->id) && array_key_exists($field->languageCode, $existingLanguageCodes)) {
$this->updateField($field, $content);
$updatedFields[$fieldDefinition->id][$languageCode] = $field;
} else {
Expand Down

0 comments on commit e72fd75

Please sign in to comment.