Skip to content

Commit 529863a

Browse files
Merge branch '5.1'
* 5.1: [PropertyAccess] fix typo
2 parents 092632d + 04e6b99 commit 529863a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/PropertyAccess/PropertyAccessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ private function readProperty(array $zval, string $property, bool $ignoreInvalid
430430
$r = new \ReflectionProperty($matches[1], $matches[2]);
431431
$type= ($type = $r->getType()) instanceof \ReflectionNamedType ? $type->getName() : (string) $type;
432432

433-
throw new UninitializedPropertyException(sprintf('The property "%s::$%s" is not readable because it is typed "%s". You should initialize it or declare a default value instead.', $r->getDeclaringClass()->getName(), $r->getName(), $type, 0, $e);
433+
throw new UninitializedPropertyException(sprintf('The property "%s::$%s" is not readable because it is typed "%s". You should initialize it or declare a default value instead.', $r->getDeclaringClass()->getName(), $r->getName(), $type), 0, $e);
434434
}
435435

436436
throw $e;

0 commit comments

Comments
 (0)