Skip to content

Commit 32f7f49

Browse files
committed
Update AbstractProvider.php
1 parent 4d83f27 commit 32f7f49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Providers/AbstractProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ protected function getClass(string $event): string
193193
*/
194194
protected function prepareHandlerClassname(string $event): string
195195
{
196-
return Str::studly(str_replace('.', ' ', $event));
196+
return (string) Str::of($event)->replaceMatches('/[^A-Za-z0-9]++/', ' ')->studly();
197197
}
198198

199199
/**

0 commit comments

Comments
 (0)