From 305929dff8ad1f0689227183ffa2f85c5ecf39fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 17 Dec 2020 15:20:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Database/ActiveRecord.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Database/ActiveRecord.php b/Database/ActiveRecord.php index a7817ae0..ab7caaee 100644 --- a/Database/ActiveRecord.php +++ b/Database/ActiveRecord.php @@ -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); }