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);