Skip to content

Commit df5fe93

Browse files
committed
Rename properties
1 parent 6315335 commit df5fe93

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/CallWebhookJob.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ class CallWebhookJob implements ShouldQueue
3535

3636
public ?string $cert = null;
3737

38-
public ?string $certPassword = null;
38+
public ?string $certPassphrase = null;
3939

4040
public ?string $sslKey = null;
4141

42-
public ?string $sslKeyPassword = null;
42+
public ?string $sslKeyPassphrase = null;
4343

4444
public string $backoffStrategyClass;
4545

@@ -151,8 +151,8 @@ protected function createRequest(array $body): Response
151151
],
152152
$body,
153153
is_null($this->proxy) ? [] : ['proxy' => $this->proxy],
154-
is_null($this->cert) ? [] : ['cert' => [$this->cert, $this->certPassword]],
155-
is_null($this->sslKey) ? [] : ['ssl_key' => [$this->sslKey, $this->sslKeyPassword]]
154+
is_null($this->cert) ? [] : ['cert' => [$this->cert, $this->certPassphrase]],
155+
is_null($this->sslKey) ? [] : ['ssl_key' => [$this->sslKey, $this->sslKeyPassphrase]]
156156
));
157157
}
158158

src/WebhookCall.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,12 @@ public function maximumTries(int $tries): self
117117
return $this;
118118
}
119119

120-
public function mutualTls(string $cert, string $sslKey, ?string $certPassword = null, ?string $sslKeyPassword = null): self
120+
public function mutualTls(string $certPath, string $sslKeyPath, ?string $certPassphrase = null, ?string $sslKeyPassphrase = null): self
121121
{
122-
$this->callWebhookJob->cert = $cert;
123-
$this->callWebhookJob->certPassword = $certPassword;
124-
$this->callWebhookJob->sslKey = $sslKey;
125-
$this->callWebhookJob->sslKeyPassword = $sslKeyPassword;
122+
$this->callWebhookJob->cert = $certPath;
123+
$this->callWebhookJob->certPassphrase = $certPassphrase;
124+
$this->callWebhookJob->sslKey = $sslKeyPath;
125+
$this->callWebhookJob->sslKeyPassphrase = $sslKeyPassphrase;
126126

127127
return $this;
128128
}

0 commit comments

Comments
 (0)