Skip to content

Commit cc6a67f

Browse files
authored
fix naming convention matcher (#27)
The name needs to be suffixed with Exception or Handler not exactly be Exception or Handler
1 parent 0b8669e commit cc6a67f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules/Naming/ExceptionsNaming.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static function rule(): ArchRule
2121
{
2222
return Rule::allClasses()
2323
->that(new ResideInOneOfTheseNamespaces(static::namespace()))
24-
->should(new MatchOneOfTheseNames(['Exception', 'Handler']))
24+
->should(new MatchOneOfTheseNames(['*Exception', '*Handler']))
2525
->because('It\'s a Laravel naming convention');
2626
}
2727
}

0 commit comments

Comments
 (0)