From fc3fa012e3b673ede96b1f87dbe63f4507d08a6c Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Thu, 14 Mar 2024 10:16:54 +0000
Subject: [PATCH] Issue #3427738 by longwave: Remove $context properties from
 ConstraintValidators

---
 .../Constraint/CommentNameConstraintValidator.php          | 7 -------
 .../Constraint/EntityTestCompositeConstraintValidator.php  | 7 -------
 .../Constraint/EntityTestEntityLevelValidator.php          | 7 -------
 3 files changed, 21 deletions(-)

diff --git a/core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraintValidator.php b/core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraintValidator.php
index 70d756f22d20..9910e4b72ec1 100644
--- a/core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraintValidator.php
+++ b/core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraintValidator.php
@@ -14,13 +14,6 @@
  */
 class CommentNameConstraintValidator extends ConstraintValidator implements ContainerInjectionInterface {
 
-  /**
-   * Validator 2.5 and upwards compatible execution context.
-   *
-   * @var \Symfony\Component\Validator\Context\ExecutionContextInterface
-   */
-  protected $context;
-
   /**
    * User storage handler.
    *
diff --git a/core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestCompositeConstraintValidator.php b/core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestCompositeConstraintValidator.php
index 1b15fff585a6..b4f4721ec7cb 100644
--- a/core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestCompositeConstraintValidator.php
+++ b/core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestCompositeConstraintValidator.php
@@ -10,13 +10,6 @@
  */
 class EntityTestCompositeConstraintValidator extends ConstraintValidator {
 
-  /**
-   * Validator 2.5 and upwards compatible execution context.
-   *
-   * @var \Symfony\Component\Validator\Context\ExecutionContextInterface
-   */
-  protected $context;
-
   /**
    * {@inheritdoc}
    */
diff --git a/core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestEntityLevelValidator.php b/core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestEntityLevelValidator.php
index 3b84ada069cc..e75731f413a2 100644
--- a/core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestEntityLevelValidator.php
+++ b/core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestEntityLevelValidator.php
@@ -10,13 +10,6 @@
  */
 class EntityTestEntityLevelValidator extends ConstraintValidator {
 
-  /**
-   * Validator 2.5 and upwards compatible execution context.
-   *
-   * @var \Symfony\Component\Validator\Context\ExecutionContextInterface
-   */
-  protected $context;
-
   /**
    * {@inheritdoc}
    */
-- 
GitLab