We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2ef28ea + 62576f2 commit 86836a5Copy full SHA for 86836a5
1 file changed
system/Entity.php
@@ -313,7 +313,7 @@ public function __get(string $key)
313
$result = $this->mutateDate($result);
314
}
315
// Or cast it as something?
316
- else if ($this->_cast && isset($this->casts[$key]) && ! empty($this->casts[$key]))
+ else if ($this->_cast && ! empty($this->casts[$key]))
317
{
318
$result = $this->castAs($result, $this->casts[$key]);
319
@@ -471,7 +471,7 @@ protected function mapProperty(string $key)
471
return $key;
472
473
474
- if (isset($this->datamap[$key]) && ! empty($this->datamap[$key]))
+ if (! empty($this->datamap[$key]))
475
476
return $this->datamap[$key];
477
0 commit comments