From 2fe464a1f9e8fc0006d79e9b3f3c96f7f21ffb16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Fri, 16 Aug 2019 16:01:39 +0200 Subject: [PATCH] Use only --- src/Tenant.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tenant.php b/src/Tenant.php index 2eb8039f..03fbeb71 100644 --- a/src/Tenant.php +++ b/src/Tenant.php @@ -77,7 +77,7 @@ class Tenant extends Model public function get(string $key) { - return $this->$key ?? $this->getFromData($key) ?? null; + return $this->attributes[$key] ?? $this->getFromData($key) ?? null; } /** @todo In v2, this should return an associative array. */