This commit is contained in:
2021-02-23 18:31:30 +08:00
parent 4a49c14055
commit 84565336ed
3 changed files with 9 additions and 5 deletions
+4 -3
View File
@@ -174,11 +174,12 @@ class Event extends BaseObject
/**
* @param $name
* @param array $params
* @return mixed
* @param null $scope
* @return bool
*/
public function dispatch($name, $params = []): mixed
public function dispatch($name, $params = [], $scope = null): bool
{
return $this->trigger($name, $params);
return $this->trigger($name, $params, $scope);
}