Skip to content

Commit e61550b

Browse files
committed
wip
1 parent dfac4bb commit e61550b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Models/Article.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,12 @@ public function isNotPublished(): bool
176176

177177
public function isPinned(): bool
178178
{
179-
return $this->is_pinned;
179+
return (bool) $this->is_pinned;
180180
}
181181

182182
public function isSponsored(): bool
183183
{
184-
return $this->is_sponsored;
184+
return (bool) $this->is_sponsored;
185185
}
186186

187187
public function isNotShared(): bool

0 commit comments

Comments
 (0)