magic methods fix fixed

This commit is contained in:
2026-03-09 09:18:05 +05:00
parent 82582719b2
commit 90948b633f

View File

@@ -72,7 +72,7 @@ class record
*/
public function __set(string $name, mixed $value = null): void
{
if (property_exists(static, $name)) {
if (array_key_exists($name, $this->values)) {
// Exist the property
// Writing the value and exit