This commit is contained in:
2025-01-18 20:28:24 +08:00
parent 11a939e8a1
commit 7fb9c3ea05
+1 -1
View File
@@ -699,7 +699,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, \
$method = $prefix . 'Attribute'; $method = $prefix . 'Attribute';
if (method_exists($this, $method)) { if (method_exists($this, $method)) {
$this->_attributes[$name] = $this->{$method} ($value); $this->_attributes[$name] = $this->{$method}($value);
} else { } else {
$this->_attributes[$name] = $value; $this->_attributes[$name] = $value;
} }