Fix error message
This commit is contained in:
parent
7c5008a79c
commit
c76d2b5807
@ -349,7 +349,7 @@ class PropertyPath implements \IteratorAggregate
|
|||||||
$objectOrArray->$property = $value;
|
$objectOrArray->$property = $value;
|
||||||
} else if ($reflClass->hasProperty($property)) {
|
} else if ($reflClass->hasProperty($property)) {
|
||||||
if (!$reflClass->getProperty($property)->isPublic()) {
|
if (!$reflClass->getProperty($property)->isPublic()) {
|
||||||
throw new PropertyAccessDeniedException(sprintf('Property "%s" is not public in class "%s". Maybe you should create the method "set%s()"?', $property, $reflClass->getName(), $setter));
|
throw new PropertyAccessDeniedException(sprintf('Property "%s" is not public in class "%s". Maybe you should create the method "%s()"?', $property, $reflClass->getName(), $setter));
|
||||||
}
|
}
|
||||||
|
|
||||||
$objectOrArray->$property = $value;
|
$objectOrArray->$property = $value;
|
||||||
|
Reference in New Issue
Block a user