Skip to content

Commit 0c26834

Browse files
Fix implicitly-required parameters
1 parent dc80291 commit 0c26834

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Context/ExecutionContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public function __construct(ValidatorInterface $validator, $root, TranslatorInte
152152
/**
153153
* {@inheritdoc}
154154
*/
155-
public function setNode($value, ?object $object, ?MetadataInterface $metadata = null, string $propertyPath)
155+
public function setNode($value, ?object $object, ?MetadataInterface $metadata, string $propertyPath)
156156
{
157157
$this->value = $value;
158158
$this->object = $object;

Context/ExecutionContextInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function getObject();
129129
* @param object|null $object The currently validated object
130130
* @param string $propertyPath The property path to the current value
131131
*/
132-
public function setNode($value, ?object $object, ?MetadataInterface $metadata = null, string $propertyPath);
132+
public function setNode($value, ?object $object, ?MetadataInterface $metadata, string $propertyPath);
133133

134134
/**
135135
* Warning: Should not be called by user code, to be used by the validator engine only.

0 commit comments

Comments
 (0)