This commit is contained in:
2021-03-16 14:37:52 +08:00
parent 9a22a92410
commit d925ca19bb
4 changed files with 39 additions and 25 deletions
+8 -7
View File
@@ -177,12 +177,13 @@ class Event extends BaseObject
}
/**
* @param $name
* @param array $params
* @param null $scope
* @return bool
*/
/**
* @param $name
* @param array $params
* @param null $scope
* @return bool
* @throws Exception
*/
public function dispatch($name, $params = [], $scope = null): bool
{
return $this->trigger($name, $params, $scope);
@@ -219,7 +220,7 @@ class Event extends BaseObject
* @return bool
* @throws Exception
*/
private function execute($event, $parameter)
private function execute($event, $parameter): bool
{
try {
$meta = $this->mergeParams($event[1], $parameter);