Skip to content

Commit

Permalink
fix BaseService::$result类型为mixed
Browse files Browse the repository at this point in the history
  • Loading branch information
kakuilan committed Jun 15, 2023
1 parent 04dd408 commit 859ddda
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Services/BaseService.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ class BaseService extends StrictObject {

/**
* 处理结果
* @var array
* @var mixed
*/
public $result = [];
public $result = null;


/**
Expand Down Expand Up @@ -113,19 +113,19 @@ public function getErrorInfo(): array {

/**
* 设置结果
* @param array $arr
* @param mixed $arr
* @return void
*/
public function setResult(array $arr): void {
public function setResult($arr): void {
$this->result = $arr;
}


/**
* 获取结果
* @return array
* @return mixed
*/
public function getResult(): array {
public function getResult(): mixed {
return $this->result;
}

Expand Down

0 comments on commit 859ddda

Please sign in to comment.