Loading core/lib/Drupal/Core/TypedData/Validation/RecursiveValidator.php +3 −2 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ use Symfony\Component\Validator\ConstraintValidatorFactoryInterface; use Symfony\Component\Validator\Context\ExecutionContextFactoryInterface; use Symfony\Component\Validator\Context\ExecutionContextInterface; use Symfony\Component\Validator\Validator\ContextualValidatorInterface; use Symfony\Component\Validator\Validator\ValidatorInterface; /** Loading Loading @@ -51,14 +52,14 @@ public function __construct(ExecutionContextFactoryInterface $context_factory, C /** * {@inheritdoc} */ public function startContext($root = NULL) { public function startContext($root = NULL): ContextualValidatorInterface { return new RecursiveContextualValidator($this->contextFactory->createContext($this, $root), $this, $this->constraintValidatorFactory, $this->typedDataManager); } /** * {@inheritdoc} */ public function inContext(ExecutionContextInterface $context) { public function inContext(ExecutionContextInterface $context): ContextualValidatorInterface { return new RecursiveContextualValidator($context, $this, $this->constraintValidatorFactory, $this->typedDataManager); } Loading Loading
core/lib/Drupal/Core/TypedData/Validation/RecursiveValidator.php +3 −2 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ use Symfony\Component\Validator\ConstraintValidatorFactoryInterface; use Symfony\Component\Validator\Context\ExecutionContextFactoryInterface; use Symfony\Component\Validator\Context\ExecutionContextInterface; use Symfony\Component\Validator\Validator\ContextualValidatorInterface; use Symfony\Component\Validator\Validator\ValidatorInterface; /** Loading Loading @@ -51,14 +52,14 @@ public function __construct(ExecutionContextFactoryInterface $context_factory, C /** * {@inheritdoc} */ public function startContext($root = NULL) { public function startContext($root = NULL): ContextualValidatorInterface { return new RecursiveContextualValidator($this->contextFactory->createContext($this, $root), $this, $this->constraintValidatorFactory, $this->typedDataManager); } /** * {@inheritdoc} */ public function inContext(ExecutionContextInterface $context) { public function inContext(ExecutionContextInterface $context): ContextualValidatorInterface { return new RecursiveContextualValidator($context, $this, $this->constraintValidatorFactory, $this->typedDataManager); } Loading