This commit is contained in:
2021-03-29 16:04:13 +08:00
parent 7dd415bff6
commit 8bc0971f25
+2 -1
View File
@@ -38,10 +38,11 @@ use Snowflake\Snowflake;
public function execute(array $handler): mixed
{
$injectValue = $this->parseInjectValue();
var_dump($injectValue);
if (!($handler[1] instanceof ReflectionProperty)) {
$handler[1] = new ReflectionProperty($handler[0], $handler[1]);
}
var_dump(get_class($handler[0]) . '::' . $handler[1]);
/** @var ReflectionProperty $handler [1] */
if ($handler[1]->isPrivate() || $handler[1]->isProtected()) {
$method = 'set' . ucfirst($handler[1]->getName());