Loading core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php +8 −7 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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; } Loading Loading @@ -268,7 +269,7 @@ public function markConstraintAsValidated($cache_key, $constraint_hash) { /** * {@inheritdoc} */ public function isConstraintValidated($cache_key, $constraint_hash) { public function isConstraintValidated($cache_key, $constraint_hash): bool { return isset($this->validatedConstraints[$cache_key . ':' . $constraint_hash]); } Loading @@ -289,7 +290,7 @@ public function markGroupAsValidated($cache_key, $group_hash) { /** * {@inheritdoc} */ public function isGroupValidated($cache_key, $group_hash) { public function isGroupValidated($cache_key, $group_hash): bool { return isset($this->validatedObjects[$cache_key][$group_hash]); } Loading @@ -303,7 +304,7 @@ public function markObjectAsInitialized($cache_key) { /** * {@inheritdoc} */ public function isObjectInitialized($cache_key) { public function isObjectInitialized($cache_key): bool { // Not supported, so nothing todo. } Loading Loading
core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php +8 −7 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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; } Loading Loading @@ -268,7 +269,7 @@ public function markConstraintAsValidated($cache_key, $constraint_hash) { /** * {@inheritdoc} */ public function isConstraintValidated($cache_key, $constraint_hash) { public function isConstraintValidated($cache_key, $constraint_hash): bool { return isset($this->validatedConstraints[$cache_key . ':' . $constraint_hash]); } Loading @@ -289,7 +290,7 @@ public function markGroupAsValidated($cache_key, $group_hash) { /** * {@inheritdoc} */ public function isGroupValidated($cache_key, $group_hash) { public function isGroupValidated($cache_key, $group_hash): bool { return isset($this->validatedObjects[$cache_key][$group_hash]); } Loading @@ -303,7 +304,7 @@ public function markObjectAsInitialized($cache_key) { /** * {@inheritdoc} */ public function isObjectInitialized($cache_key) { public function isObjectInitialized($cache_key): bool { // Not supported, so nothing todo. } Loading