From 48bcdc174373ec0829a634c618e9d5f855957c47 Mon Sep 17 00:00:00 2001 From: Aaron Bauman <aaron@messageagency.com> Date: Thu, 20 Jul 2023 15:29:45 -0400 Subject: [PATCH] Git rid of extra semicolon --- .../Validation/Constraint/UniqueFieldsConstraintValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/salesforce_mapping/src/Plugin/Validation/Constraint/UniqueFieldsConstraintValidator.php b/modules/salesforce_mapping/src/Plugin/Validation/Constraint/UniqueFieldsConstraintValidator.php index ce64d201..b94e9446 100644 --- a/modules/salesforce_mapping/src/Plugin/Validation/Constraint/UniqueFieldsConstraintValidator.php +++ b/modules/salesforce_mapping/src/Plugin/Validation/Constraint/UniqueFieldsConstraintValidator.php @@ -18,7 +18,7 @@ class UniqueFieldsConstraintValidator extends ConstraintValidator { $id_key = $entity_type->getKey('id'); $query = \Drupal::entityQuery($entity_type->id()) - ->accessCheck(FALSE); + ->accessCheck(FALSE) // The id could be NULL, so we cast it to 0 in that case. ->condition($id_key, (int) $entity->id(), '<>') ->range(0, 1); -- GitLab