Поправил доступ к значению переменной

This commit is contained in:
Rinsvent 2021-08-29 15:37:41 +07:00
parent cc98dddedf
commit 5498eeb420

View File

@ -216,14 +216,14 @@ class Dto2DataConverter
private function getValue(object $object, \ReflectionProperty $property)
{
if (!$property->isInitialized($object)) {
return null;
}
if (!$property->isPublic()) {
$property->setAccessible(true);
}
if (!$property->isInitialized($object)) {
return null;
}
$value = $property->getValue($object);
if (!$property->isPublic()) {