2 Commits
3.4.1 ... 3.4.3

Author SHA1 Message Date
90948b633f magic methods fix fixed 2026-03-09 09:18:05 +05:00
82582719b2 magic methods fixed 2026-03-09 09:11:44 +05:00

View File

@@ -72,16 +72,16 @@ class record
*/ */
public function __set(string $name, mixed $value = null): void public function __set(string $name, mixed $value = null): void
{ {
if (isset($this->values[$name])) { if (array_key_exists($name, $this->values)) {
// Initialized the parameter // Exist the property
// Writing the value and exit // Writing the value and exit
$this->values[$name] = $value; $this->values[$name] = $value;
} else { } else {
// Not initialized the parameter // Not exist the property
// Exit (fail) // Exit (fail)
throw new exception_domain("Not found the parameter: $name"); throw new exception_domain("Not found the property: $name");
} }
} }