Unverified Commit c1831be5 authored by Lee Rowlands's avatar Lee Rowlands
Browse files

Issue #3233464 by daffie: [Symfony 6] Add "ExecutionContextInterface" type...

Issue #3233464 by daffie: [Symfony 6] Add "ExecutionContextInterface" type hint to methods overriding Symfony\Component\Validator\Context\ExecutionContextFactoryInterface::createContext()
parent 9dcc9676
Loading
Loading
Loading
Loading
+2 −1
Changes for core/lib/Drupal/Core/TypedData/Validation/ExecutionContextFactory.php: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@

use Drupal\Core\Validation\TranslatorInterface;
use Symfony\Component\Validator\Context\ExecutionContextFactoryInterface;
use Symfony\Component\Validator\Context\ExecutionContextInterface;
use Symfony\Component\Validator\Validator\ValidatorInterface;

/**
@@ -39,7 +40,7 @@ public function __construct(TranslatorInterface $translator, $translationDomain
  /**
   * {@inheritdoc}
   */
  public function createContext(ValidatorInterface $validator, $root) {
  public function createContext(ValidatorInterface $validator, $root): ExecutionContextInterface {
    return new ExecutionContext(
      $validator,
      $root,