Fix serialization mismatch for project/domain fields in Mail and Certificate messages

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
loks0n
2026-03-15 19:22:00 +00:00
co-authored by Claude Sonnet 4.6
parent 8888070c7c
commit 52628e44e5
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -21,8 +21,8 @@ readonly class Certificate extends Base
public function toArray(): array
{
return [
'project' => $this->project,
'domain' => $this->domain,
'project' => $this->project?->getArrayCopy(),
'domain' => $this->domain?->getArrayCopy(),
'skipRenewCheck' => $this->skipRenewCheck,
'validationDomain' => $this->validationDomain,
'action' => $this->action,
+1 -1
View File
@@ -26,7 +26,7 @@ readonly class Mail extends Base
public function toArray(): array
{
return [
'project' => $this->project,
'project' => $this->project?->getArrayCopy(),
'recipient' => $this->recipient,
'name' => $this->name,
'subject' => $this->subject,