Skip to content

Commit 7a07d6a

Browse files
committed
fix signers_allowed_to_decline type
1 parent 8977a9d commit 7a07d6a

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

pint.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"preset": "laravel",
33
"rules": {
4-
"declare_strict_types": true
4+
"declare_strict_types": true,
5+
"explicit_string_variable": true,
6+
"mb_str_functions": true
57
}
68
}

src/Integration/Requests/SignatureRequest/CreateSignatureRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function __construct(
3636
protected readonly ?string $custom_experience_id = null,
3737
protected readonly ?string $workspace_id = null,
3838
protected readonly ?string $audit_trail_locale = null,
39-
protected readonly ?string $signers_allowed_to_decline = null,
39+
protected readonly ?bool $signers_allowed_to_decline = null,
4040
protected readonly ?array $email_notification = null,
4141
protected readonly ?array $template_placeholders = null,
4242
) {}

src/Integration/Requests/SignatureRequest/UpdateSignatureRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(
4040
protected readonly ?string $custom_experience_id = null,
4141
protected readonly ?string $workspace_id = null,
4242
protected readonly ?string $audit_trail_locale = null,
43-
protected readonly ?string $signers_allowed_to_decline = null,
43+
protected readonly ?bool $signers_allowed_to_decline = null,
4444
protected readonly ?array $email_notification = null,
4545
protected readonly ?array $template_placeholders = null,
4646
) {}

src/Integration/Resource/SignatureRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function create(
4747
?string $custom_experience_id = null,
4848
?string $workspace_id = null,
4949
?string $audit_trail_locale = null,
50-
?string $signers_allowed_to_decline = null,
50+
?bool $signers_allowed_to_decline = null,
5151
?array $email_notification = null,
5252
?array $template_placeholders = null,
5353
): Response {
@@ -103,7 +103,7 @@ public function update(
103103
?string $custom_experience_id = null,
104104
?string $workspace_id = null,
105105
?string $audit_trail_locale = null,
106-
?string $signers_allowed_to_decline = null,
106+
?bool $signers_allowed_to_decline = null,
107107
?array $email_notification = null,
108108
?array $template_placeholders = null
109109
): Response {

src/Webhooks/ProcessYousignWebhookJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function handle()
3636
}
3737

3838
if (! class_exists($jobClass)) {
39-
throw new Exception("Could not process webhook id `{$this->webhookCall->id}` because the configured jobclass `$jobClass` does not exist.");
39+
throw new Exception("Could not process webhook id `{$this->webhookCall->id}` because the configured jobclass `{$jobClass}` does not exist.");
4040
}
4141

4242
dispatch(new $jobClass($this->webhookCall));

0 commit comments

Comments
 (0)