Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e49f6b4

Browse files
author
Andreas Aagaard
committedJun 30, 2020
# Migrated to PHP <7.4
1 parent f653b3f commit e49f6b4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/WebhookClientServiceProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ public function boot()
3333
$configRepository = new WebhookConfigRepository();
3434

3535
collect(config('webhook-client.configs'))
36-
->map(fn (array $config) => new WebhookConfig($config))
36+
->map(function (array $config) {
37+
return new WebhookConfig($config);
38+
})
3739
->each(function (WebhookConfig $webhookConfig) use ($configRepository) {
3840
$configRepository->addConfig($webhookConfig);
3941
});

0 commit comments

Comments
 (0)
Please sign in to comment.