Skip to content

Commit 2fb3697

Browse files
committed
wip
1 parent f2e2e51 commit 2fb3697

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to `laravel-webhook-client` will be documented in this file
44

5+
## 2.0.1 - 2019-07-08
6+
7+
- make `signing_secret` and `signature_header_name` config keys optional
8+
59
## 2.0.0 - 2019-07-08
610

711
- `DefaultSignatureValidator` is now responsible for verifying that a signature header has been set

src/WebhookConfig.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ public function __construct(array $properties)
3333
{
3434
$this->name = $properties['name'];
3535

36-
$this->signingSecret = $properties['signing_secret'];
36+
$this->signingSecret = $properties['signing_secret'] ?? '';
3737

38-
$this->signatureHeaderName = $properties['signature_header_name'];
38+
$this->signatureHeaderName = $properties['signature_header_name'] ?? '';
3939

4040
if (! is_subclass_of($properties['signature_validator'], SignatureValidator::class)) {
4141
throw InvalidConfig::invalidSignatureValidator($properties['signature_validator']);

0 commit comments

Comments
 (0)