From 36747901abc6715690b4761d9a037f39fd89ebee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 28 Sep 2021 18:54:07 +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 --- kiri-engine/Kiri.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kiri-engine/Kiri.php b/kiri-engine/Kiri.php index 6bdb9d71..d9f0a2fe 100644 --- a/kiri-engine/Kiri.php +++ b/kiri-engine/Kiri.php @@ -6,7 +6,7 @@ namespace Kiri; use Annotation\Annotation; -use Database\ActiveRecord; +use Database\ModelInterface; use Database\Collection; use Exception; use JetBrains\PhpStorm\Pure; @@ -536,7 +536,7 @@ class Kiri public static function param(string $event, $data = NULL): bool|string { if (is_object($data)) { - if ($data instanceof ActiveRecord || $data instanceof Collection) { + if ($data instanceof ModelInterface || $data instanceof Collection) { $data = $data->getAttributes(); } else { $data = get_object_vars($data);