mirror of
https://github.com/flarum/core.git
synced 2025-08-06 08:27:42 +02:00
chore: Remove unused vars in catch (#3839)
This commit is contained in:
@@ -64,7 +64,7 @@ class TagFilterGambit extends AbstractRegexGambit implements FilterInterface
|
||||
// @TODO: grab all IDs first instead of multiple queries.
|
||||
try {
|
||||
$id = $this->slugger->forResource(Tag::class)->fromSlug($slug, $actor)->id;
|
||||
} catch (ModelNotFoundException $e) {
|
||||
} catch (ModelNotFoundException) {
|
||||
$id = null;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user