From 7d110c23a9366feef5e152cc6563c8ed058d6376 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 5 Jun 2024 14:26:12 +0200 Subject: Fix attributeBoolean (#6543) Regression from https://github.com/FreshRSS/FreshRSS/pull/5946 fix https://github.com/FreshRSS/FreshRSS/issues/6521 --- app/Models/AttributesTrait.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/Models/AttributesTrait.php') diff --git a/app/Models/AttributesTrait.php b/app/Models/AttributesTrait.php index e94a973d9..8795d81d9 100644 --- a/app/Models/AttributesTrait.php +++ b/app/Models/AttributesTrait.php @@ -15,6 +15,11 @@ trait FreshRSS_AttributesTrait { return $this->attributes; } + /** @param non-empty-string $key */ + public function hasAttribute(string $key): bool { + return isset($this->attributes[$key]); + } + /** * @param non-empty-string $key * @return array|null -- cgit v1.2.3