This commit is contained in:
2021-02-23 18:36:40 +08:00
parent 84565336ed
commit 7187434d6f
2 changed files with 5 additions and 32 deletions
+4 -2
View File
@@ -306,12 +306,14 @@ class Command extends Component
}
/**
* @param null $scope
* @param bool $insert
* @return int|bool|array|string|null
* @throws Exception
*/
public function exec(): int|bool|array|string|null
public function exec($scope = null, $insert = false): int|bool|array|string|null
{
return $this->execute(static::EXECUTE);
return $this->execute(static::EXECUTE, $insert, $scope);
}
/**