Skip to content

Commit 11b585b

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into 4.4
2 parents 0af105b + 335ab86 commit 11b585b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

system/Entity/Entity.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ public function cast(?bool $cast = null)
441441
*
442442
* @param array|bool|float|int|object|string|null $value
443443
*
444-
* @return $this
444+
* @return void
445445
*
446446
* @throws Exception
447447
*/
@@ -472,16 +472,14 @@ public function __set(string $key, $value = null)
472472
if (method_exists($this, $method) && $method !== 'setAttributes') {
473473
$this->{$method}($value);
474474

475-
return $this;
475+
return;
476476
}
477477

478478
// Otherwise, just the value. This allows for creation of new
479479
// class properties that are undefined, though they cannot be
480480
// saved. Useful for grabbing values through joins, assigning
481481
// relationships, etc.
482482
$this->attributes[$dbColumn] = $value;
483-
484-
return $this;
485483
}
486484

487485
/**

0 commit comments

Comments
 (0)