We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2b04972 + 923e2b3 commit 335ab86Copy full SHA for 335ab86
1 file changed
system/Entity/Entity.php
@@ -429,7 +429,7 @@ public function cast(?bool $cast = null)
429
*
430
* @param array|bool|float|int|object|string|null $value
431
432
- * @return $this
+ * @return void
433
434
* @throws Exception
435
*/
@@ -452,16 +452,14 @@ public function __set(string $key, $value = null)
452
if (method_exists($this, $method)) {
453
$this->{$method}($value);
454
455
- return $this;
+ return;
456
}
457
458
// Otherwise, just the value. This allows for creation of new
459
// class properties that are undefined, though they cannot be
460
// saved. Useful for grabbing values through joins, assigning
461
// relationships, etc.
462
$this->attributes[$dbColumn] = $value;
463
-
464
465
466
467
/**
0 commit comments