diff --git a/app/Models/WebhookConfiguration.php b/app/Models/WebhookConfiguration.php index 9f04a242d1..309565bc62 100644 --- a/app/Models/WebhookConfiguration.php +++ b/app/Models/WebhookConfiguration.php @@ -116,9 +116,7 @@ public static function transformClassName(string $event): string ->after('eloquent.') ->replace('App\\Models\\', '') ->replace('App\\Events\\', 'event: ') - ->replaceMatches('/Illuminate\\\\([A-z]+)\\\\Events\\\\/', function (array $matches) { - return strtolower($matches[1]) . ': '; - }) + ->replaceMatches('/Illuminate\\\\([A-z]+)\\\\Events\\\\/', fn (array $matches) => strtolower($matches[1]) . ': ') ->toString(); }