Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ class Client {
protected array $headers = [
'Accept: application/json',
];
protected string $sentWith;
protected ?string $sentWith;
protected ?string $signingSecret;

/**
* @throws InvalidArgumentException
Expand All @@ -38,6 +39,7 @@ public function __construct(

// Always use the class constant, ignore the parameter
$this->sentWith = self::SENT_WITH;
$this->signingSecret = $signingSecret;

$this->headers[] = 'SentWith: ' . $this->sentWith;
$this->setApiKey($this->apiKey);
Expand Down Expand Up @@ -220,4 +222,4 @@ public function post(string $path, array $payload = []): mixed {
public function get(string $path, array $params = []): mixed {
return $this->request($path, HttpMethod::GET, $params);
}
}
}