Skip to content
Snippets Groups Projects

Issue #3364801: PHP Fatal error: Declaration of Drupal\Core\TypedData\Validation\ExecutionContext

Open Issue #3364801: PHP Fatal error: Declaration of Drupal\Core\TypedData\Validation\ExecutionContext
@@ -133,7 +133,7 @@ public function __construct(ValidatorInterface $validator, $root, TranslatorInte
/**
* {@inheritdoc}
*/
public function setNode($value, $object, MetadataInterface $metadata = NULL, $propertyPath) {
public function setNode($value, $object, MetadataInterface $metadata = NULL, $propertyPath): void {
$this->value = $value;
$this->data = $object;
$this->metadata = $metadata;
@@ -143,14 +143,14 @@ public function setNode($value, $object, MetadataInterface $metadata = NULL, $pr
/**
* {@inheritdoc}
*/
public function setGroup($group) {
public function setGroup(?string $group): void {
$this->group = $group;
}
/**
* {@inheritdoc}
*/
public function setConstraint(Constraint $constraint) {
public function setConstraint(Constraint $constraint): void {
$this->constraint = $constraint;
}
@@ -262,7 +262,7 @@ public function validate($value, $subPath = '', $groups = NULL, $traverse = FALS
/**
* {@inheritdoc}
*/
public function markConstraintAsValidated($cache_key, $constraint_hash) {
public function markConstraintAsValidated($cache_key, $constraint_hash): void {
$this->validatedConstraints[$cache_key . ':' . $constraint_hash] = TRUE;
}
@@ -283,7 +283,7 @@ public function validateValue($value, $constraints, $subPath = '', $groups = NUL
/**
* {@inheritdoc}
*/
public function markGroupAsValidated($cache_key, $group_hash) {
public function markGroupAsValidated($cache_key, $group_hash): void {
$this->validatedObjects[$cache_key][$group_hash] = TRUE;
}
@@ -297,7 +297,7 @@ public function isGroupValidated($cache_key, $group_hash): bool {
/**
* {@inheritdoc}
*/
public function markObjectAsInitialized($cache_key) {
public function markObjectAsInitialized($cache_key): void {
throw new \LogicException('\Symfony\Component\Validator\Context\ExecutionContextInterface::markObjectAsInitialized is unsupported.');
}
Loading