From a3215d365292588fc2b1e71f226cda036d0aef76 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Tue, 10 Aug 2021 19:52:13 +0200 Subject: Declare "set" method of Entity class as void --- core/namespace/ORM/Entity.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'core/namespace/ORM/Entity.php') diff --git a/core/namespace/ORM/Entity.php b/core/namespace/ORM/Entity.php index a19b1f4..592aeb5 100644 --- a/core/namespace/ORM/Entity.php +++ b/core/namespace/ORM/Entity.php @@ -19,13 +19,12 @@ abstract class Entity implements EntityInterface { #=============================================================================== # Set attribute #=============================================================================== - public function set(string $attribute, $value) { + public function set(string $attribute, $value): void { if($this->{$attribute} !== $value) { + $this->{$attribute} = $value; !in_array($attribute, $this->_modified) && array_push($this->_modified, $attribute); } - - return $this->{$attribute} = $value; } #=============================================================================== -- cgit v1.2.3