diff --git a/src/Rules/Naming/ExceptionsNaming.php b/src/Rules/Naming/ExceptionsNaming.php index 613b0c6..944f938 100644 --- a/src/Rules/Naming/ExceptionsNaming.php +++ b/src/Rules/Naming/ExceptionsNaming.php @@ -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'); } }