diff --git a/src/Registrar/WebhookRegistrar.php b/src/Registrar/WebhookRegistrar.php index ea76e31..6049691 100644 --- a/src/Registrar/WebhookRegistrar.php +++ b/src/Registrar/WebhookRegistrar.php @@ -83,12 +83,13 @@ private function getWebhooks(): array { $webhooks = []; + /** @var Name $name */ foreach ([Name::StockAdjust, Name::PickOrderPacked] as $name) { $webhooks[] = new Webhook( name: $name, url: $this->urlGenerator->generate( name: 'setono_sylius_peak_global_webhook', - parameters: ['name' => $name], + parameters: ['name' => $name->value], referenceType: UrlGeneratorInterface::ABSOLUTE_URL, ), );