Upgrade 1-11.38

This commit is contained in:
xesmyd
2026-03-30 14:10:30 +02:00
parent f2a7e6d1fc
commit ac648ef29d
24665 changed files with 69682 additions and 2205004 deletions
+4 -4
View File
@@ -49,7 +49,7 @@ class ConstraintViolation implements ConstraintViolationInterface
* caused the violation
* @param mixed $cause The cause of the violation
*/
public function __construct($message, $messageTemplate, array $parameters, $root, $propertyPath, $invalidValue, $plural = null, $code = null, Constraint $constraint = null, $cause = null)
public function __construct(?string $message, ?string $messageTemplate, array $parameters, $root, ?string $propertyPath, $invalidValue, int $plural = null, $code = null, Constraint $constraint = null, $cause = null)
{
$this->message = $message;
$this->messageTemplate = $messageTemplate;
@@ -70,9 +70,9 @@ class ConstraintViolation implements ConstraintViolationInterface
*/
public function __toString()
{
if (is_object($this->root)) {
$class = 'Object('.get_class($this->root).')';
} elseif (is_array($this->root)) {
if (\is_object($this->root)) {
$class = 'Object('.\get_class($this->root).')';
} elseif (\is_array($this->root)) {
$class = 'Array';
} else {
$class = (string) $this->root;