This commit is contained in:
2021-02-13 17:06:19 +08:00
parent e87c5999fe
commit 294258994b
+1 -1
View File
@@ -419,7 +419,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
* @return mixed * @return mixed
* @throws Exception * @throws Exception
*/ */
private function setPrimary($lastId, $param) private function setPrimary($lastId, $param): mixed
{ {
if ($this->hasAutoIncrement()) { if ($this->hasAutoIncrement()) {
return $this->setAttribute($this->getAutoIncrement(), (int)$lastId); return $this->setAttribute($this->getAutoIncrement(), (int)$lastId);