minor #42153 [Validator] backport type fixes (Tobion)
This PR was merged into the 5.2 branch.
Discussion
----------
[Validator] backport type fixes
| Q | A
| ------------- | ---
| Branch? | 5.2
| Bug fix? | yes
| New feature? | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets |
| License | MIT
| Doc PR |
Backport type fixes found when reviewing #42138
Commits
-------
969b28ec11
[Validator] backport type fixes
This commit is contained in:
commit
d78e3e586b
|
@ -153,7 +153,7 @@ class ExecutionContext implements ExecutionContextInterface
|
||||||
$this->value = $value;
|
$this->value = $value;
|
||||||
$this->object = $object;
|
$this->object = $object;
|
||||||
$this->metadata = $metadata;
|
$this->metadata = $metadata;
|
||||||
$this->propertyPath = (string) $propertyPath;
|
$this->propertyPath = $propertyPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -46,7 +46,7 @@ class ConstraintViolationBuilder implements ConstraintViolationBuilderInterface
|
||||||
/**
|
/**
|
||||||
* @param string $message The error message as a string or a stringable object
|
* @param string $message The error message as a string or a stringable object
|
||||||
*/
|
*/
|
||||||
public function __construct(ConstraintViolationList $violations, Constraint $constraint, $message, array $parameters, $root, $propertyPath, $invalidValue, TranslatorInterface $translator, $translationDomain = null)
|
public function __construct(ConstraintViolationList $violations, ?Constraint $constraint, $message, array $parameters, $root, $propertyPath, $invalidValue, TranslatorInterface $translator, $translationDomain = null)
|
||||||
{
|
{
|
||||||
$this->violations = $violations;
|
$this->violations = $violations;
|
||||||
$this->message = $message;
|
$this->message = $message;
|
||||||
|
|
Reference in New Issue