改名
This commit is contained in:
@@ -38,7 +38,9 @@ use Snowflake\Snowflake;
|
|||||||
public function execute(array $handler): mixed
|
public function execute(array $handler): mixed
|
||||||
{
|
{
|
||||||
$injectValue = $this->parseInjectValue();
|
$injectValue = $this->parseInjectValue();
|
||||||
|
if (!($handler[1] instanceof ReflectionProperty)) {
|
||||||
|
$handler[1] = new ReflectionProperty($handler[0], $handler[1]);
|
||||||
|
}
|
||||||
/** @var ReflectionProperty $handler [1] */
|
/** @var ReflectionProperty $handler [1] */
|
||||||
if ($handler[1]->isPrivate() || $handler[1]->isProtected()) {
|
if ($handler[1]->isPrivate() || $handler[1]->isProtected()) {
|
||||||
$method = 'set' . ucfirst($handler[1]->getName());
|
$method = 'set' . ucfirst($handler[1]->getName());
|
||||||
|
|||||||
Reference in New Issue
Block a user