From 49742a08adf78a73bf4e491ef4d087f813494e17 Mon Sep 17 00:00:00 2001 From: xl Date: Thu, 25 May 2023 17:00:58 +0800 Subject: [PATCH] qqq --- Base/Model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Base/Model.php b/Base/Model.php index 0822625..472443f 100644 --- a/Base/Model.php +++ b/Base/Model.php @@ -492,9 +492,9 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T */ private function diff(): array { - $changes = array_diff_assoc($this->_attributes, $this->_oldAttributes); + $changes = \array_diff_assoc($this->_attributes, $this->_oldAttributes); - $condition = array_intersect_assoc($this->_oldAttributes, $this->_attributes); + $condition = \array_intersect_assoc($this->_oldAttributes, $this->_attributes); return [$changes, $condition]; }