From 6ceb58c2c86851aba78bad6ed0f8ec7053a55381 Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Sat, 1 Nov 2025 18:28:20 +0100 Subject: [PATCH] refactor: replace the Model->isset property with a public instance method --- src/Database/Model.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Database/Model.php b/src/Database/Model.php index 96d9bb6..0b12e91 100644 --- a/src/Database/Model.php +++ b/src/Database/Model.php @@ -72,9 +72,8 @@ * * @return bool Entity exists */ - public bool $isset { - // Returns bool if row is set or attempts to resolve and set if null - get => $this->_isset ??= new Database() + public function isset(): bool { + return $this->_isset ??= new Database() ->from($this->table) ->where($this->where) ->limit(1)