Unverified Commit 1b900151 authored by Lee Rowlands's avatar Lee Rowlands
Browse files

Issue #3231688 by daffie: [Symfony 6] Add type hints to...

Issue #3231688 by daffie: [Symfony 6] Add type hints to Drupal\Core\TypedData\Validation\ExecutionContext::getViolations(), ::getValidator(), ::getRoot() and ::getValue()
parent caeb32e8
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@
use Symfony\Component\Validator\Constraint;
use Symfony\Component\Validator\ConstraintViolation;
use Symfony\Component\Validator\ConstraintViolationList;
use Symfony\Component\Validator\ConstraintViolationListInterface;
use Symfony\Component\Validator\Context\ExecutionContextInterface;
use Symfony\Component\Validator\Mapping\MetadataInterface;
use Symfony\Component\Validator\Util\PropertyPath;
@@ -177,28 +178,28 @@ public function buildViolation($message, array $parameters = []): ConstraintViol
  /**
   * {@inheritdoc}
   */
  public function getViolations() {
  public function getViolations(): ConstraintViolationListInterface {
    return $this->violations;
  }

  /**
   * {@inheritdoc}
   */
  public function getValidator() {
  public function getValidator(): ValidatorInterface {
    return $this->validator;
  }

  /**
   * {@inheritdoc}
   */
  public function getRoot() {
  public function getRoot(): mixed {
    return $this->root;
  }

  /**
   * {@inheritdoc}
   */
  public function getValue() {
  public function getValue(): mixed {
    return $this->value;
  }