From 80c6135711cf48251117600d9e2d9bec69ff7d79 Mon Sep 17 00:00:00 2001 From: nilsir Date: Thu, 16 Feb 2023 14:17:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E9=94=99=E8=AF=AF=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- beike/Admin/Repositories/AttributeRepo.php | 2 +- beike/Installer/Helpers/functions.php | 5 +++++ beike/Plugin/Plugin.php | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/beike/Admin/Repositories/AttributeRepo.php b/beike/Admin/Repositories/AttributeRepo.php index 29907c2c..76515a52 100644 --- a/beike/Admin/Repositories/AttributeRepo.php +++ b/beike/Admin/Repositories/AttributeRepo.php @@ -96,7 +96,7 @@ class AttributeRepo return $attributeValue; } - public function deleteValue($id) + public static function deleteValue($id) { AttributeValue::query()->findOrFail($id)->delete(); } diff --git a/beike/Installer/Helpers/functions.php b/beike/Installer/Helpers/functions.php index 121c4efe..1f337b6a 100644 --- a/beike/Installer/Helpers/functions.php +++ b/beike/Installer/Helpers/functions.php @@ -1,5 +1,8 @@ packageInfo, $key); } + #[\ReturnTypeWillChange] public function offsetGet($key) { return $this->packageInfoAttribute($key); } + #[\ReturnTypeWillChange] public function offsetSet($key, $value) { return Arr::set($this->packageInfo, $key, $value); } + #[\ReturnTypeWillChange] public function offsetUnset($key) { unset($this->packageInfo[$key]);