Skip to content

Commit

Permalink
修复
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Nov 18, 2022
1 parent b9479bd commit 7969d93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Util/DelayServerBeanCallable.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ class DelayServerBeanCallable

private string $beanName = '';

private string $methodName;
private string $methodName = '';

private array $constructArgs;
private array $constructArgs = [];

/**
* @param string|IServer $server
Expand Down Expand Up @@ -66,7 +66,7 @@ public function getInstance(): object
*/
public function __invoke(...$args)
{
return $this->server->getBean($this->beanName, ...$this->constructArgs)->{$this->methodName}(...$args);
return $this->getInstance()->{$this->methodName}(...$args);
}

public function __serialize(): array
Expand Down

0 comments on commit 7969d93

Please sign in to comment.