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

master v0.0.2
Rinsvent 3 years ago
parent cc98dddedf
commit 5498eeb420
  1. 8
      src/Dto2DataConverter.php

@ -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…
Cancel
Save