From fea649413c46076778bcae28a6be4806b443defb Mon Sep 17 00:00:00 2001 From: whwyy Date: Thu, 23 Apr 2026 00:20:00 +0800 Subject: [PATCH] eee --- Base/Model.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Base/Model.php b/Base/Model.php index 48a5702..4fc16d5 100644 --- a/Base/Model.php +++ b/Base/Model.php @@ -729,15 +729,11 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, \ public function __get(string $name): mixed { if (isset($this->_attributes[$name])) { - $value = $this->_attributes[$name] ?? NULL; - - return $this->withPropertyOverride($name, $value); + return $this->withPropertyOverride($name, $this->_attributes[$name]); } if (isset($this->_oldAttributes[$name])) { - $value = $this->_oldAttributes[$name] ?? NULL; - - return $this->withPropertyOverride($name, $value); + return $this->withPropertyOverride($name, $this->_oldAttributes[$name]); } return parent::__get($name);