Skip to content

Commit

Permalink
Fix find rule community detail rule
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Sep 19, 2024
1 parent 53a290b commit 6a446b0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/FileSystem/RectorFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ public function findBySlug(string $slug): ?RuleMetadata
}
}

foreach ($this->findCommunity() as $ruleMetadata) {
if ($ruleMetadata->getSlug() === $slug) {
return $ruleMetadata;
}
}

return null;
}

Expand Down

0 comments on commit 6a446b0

Please sign in to comment.