Поправил доступ к значению переменной
This commit is contained in:
parent
cc98dddedf
commit
5498eeb420
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user