Skip to content

Commit 859ddda

Browse files
committed
fix BaseService::$result类型为mixed
1 parent 04dd408 commit 859ddda

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Services/BaseService.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ class BaseService extends StrictObject {
3737

3838
/**
3939
* 处理结果
40-
* @var array
40+
* @var mixed
4141
*/
42-
public $result = [];
42+
public $result = null;
4343

4444

4545
/**
@@ -113,19 +113,19 @@ public function getErrorInfo(): array {
113113

114114
/**
115115
* 设置结果
116-
* @param array $arr
116+
* @param mixed $arr
117117
* @return void
118118
*/
119-
public function setResult(array $arr): void {
119+
public function setResult($arr): void {
120120
$this->result = $arr;
121121
}
122122

123123

124124
/**
125125
* 获取结果
126-
* @return array
126+
* @return mixed
127127
*/
128-
public function getResult(): array {
128+
public function getResult(): mixed {
129129
return $this->result;
130130
}
131131

0 commit comments

Comments
 (0)