This commit is contained in:
2020-12-17 14:58:54 +08:00
parent 3e9d5a5aff
commit bdd26f2b42
2 changed files with 49 additions and 50 deletions
+2 -2
View File
@@ -182,10 +182,10 @@ class ActiveRecord extends BaseActiveRecord
/**
* @param array $attributes
* @return bool
* @return static
* @throws
*/
public function update(array $attributes): bool
public function update(array $attributes): static
{
return $this->save($attributes);
}