Skip to content

Commit

Permalink
fix naming convention matcher (#27)
Browse files Browse the repository at this point in the history
The name needs to be suffixed with Exception or Handler not exactly be Exception or Handler
  • Loading branch information
christian98 committed Apr 25, 2024
1 parent 0b8669e commit cc6a67f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rules/Naming/ExceptionsNaming.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static function rule(): ArchRule
{
return Rule::allClasses()
->that(new ResideInOneOfTheseNamespaces(static::namespace()))
->should(new MatchOneOfTheseNames(['Exception', 'Handler']))
->should(new MatchOneOfTheseNames(['*Exception', '*Handler']))
->because('It\'s a Laravel naming convention');
}
}

0 comments on commit cc6a67f

Please sign in to comment.