mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-28 14:45:36 +01:00
Add return type
This commit is contained in:
@@ -472,7 +472,7 @@ class OTS_Account extends OTS_Row_DAO implements IteratorAggregate, Countable
|
||||
return $this->data['lastday'];
|
||||
}
|
||||
|
||||
public function isPremium()
|
||||
public function isPremium(): bool
|
||||
{
|
||||
if(isset($this->data['premium_ends_at']) || isset($this->data['premend']) ||
|
||||
(isCanary() && isset($this->data['lastday']))) {
|
||||
|
||||
@@ -56,7 +56,7 @@ class Account extends Model {
|
||||
return max($ret, 0);
|
||||
}
|
||||
|
||||
public function getIsPremiumAttribute()
|
||||
public function getIsPremiumAttribute(): bool
|
||||
{
|
||||
if(isset($this->premium_ends_at) || isset($this->premend) ||
|
||||
(isCanary() && isset($this->lastday))) {
|
||||
|
||||
Reference in New Issue
Block a user