Skip to content

Commit

Permalink
in_array strict
Browse files Browse the repository at this point in the history
  • Loading branch information
venix12 committed Aug 11, 2024
1 parent b62fb05 commit 8a4db73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Models/Forum/Topic.php
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ public function setIssueTag($tag)
{
$this->topic_type = static::typeInt($tag === 'confirmed' ? 'sticky' : 'normal');

if (in_array($tag, static::PLATFORM_ISSUE_TAGS)) {
if (in_array($tag, static::PLATFORM_ISSUE_TAGS, true)) {
$tag = "osu!{$tag}";
}

Expand All @@ -832,7 +832,7 @@ public function unsetIssueTag($tag)
{
$this->topic_type = static::typeInt($tag === 'resolved' ? 'sticky' : 'normal');

if (in_array($tag, static::PLATFORM_ISSUE_TAGS)) {
if (in_array($tag, static::PLATFORM_ISSUE_TAGS, true)) {
$tag = "osu!{$tag}";
}

Expand All @@ -847,7 +847,7 @@ public function unsetIssueTag($tag)

public function hasIssueTag($tag)
{
if (in_array($tag, static::PLATFORM_ISSUE_TAGS)) {
if (in_array($tag, static::PLATFORM_ISSUE_TAGS, true)) {
$tag = "osu!{$tag}";
}

Expand Down

0 comments on commit 8a4db73

Please sign in to comment.