From 9d32e460156742f4a0769aa7b2feff646db713d1 Mon Sep 17 00:00:00 2001 From: kenjis Date: Tue, 6 Jun 2023 14:55:35 +0900 Subject: [PATCH] refactor: fix incorrect return value See https://www.php.net/manual/en/language.oop5.overloading.php#language.oop5.overloading.members --- system/Entity/Entity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/Entity/Entity.php b/system/Entity/Entity.php index 8495fadf6126..35e10414d1f8 100644 --- a/system/Entity/Entity.php +++ b/system/Entity/Entity.php @@ -465,7 +465,7 @@ public function __set(string $key, $value = null) if (method_exists($this, '_' . $method)) { $this->{'_' . $method}($value); - return $this; + return; } // If a "`set` + $key" method exists, it is also a setter.