This commit is contained in:
2020-12-17 15:20:43 +08:00
parent f7068a01ac
commit 305929dff8
+3 -3
View File
@@ -182,10 +182,10 @@ class ActiveRecord extends BaseActiveRecord
/**
* @param array $attributes
* @return static
* @throws
* @return ActiveRecord|bool
* @throws Exception
*/
public function update(array $attributes): static
public function update(array $attributes): static|bool
{
return $this->save($attributes);
}