Skip to content

Commit

Permalink
AddresBook strict types update
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed Nov 21, 2024
1 parent 4084c5a commit 6dff35f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/mServer/Adressbook.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Adressbook extends Client
/**
* Current Object's agenda.
*/
public string $agenda = 'addressBook';
public ?string $agenda = 'addressBook';

/**
* Request XML helper.
Expand All @@ -40,11 +40,12 @@ class Adressbook extends Client
/**
* Create Agenda document using given data.
*
* @param array<string,string> $data
* @param array<string,string|array> $data
*/
#[\Override]
public function create($data): void
public function create(array $data): int
{
$this->requestXml = $this->pohoda->createAddressbook($data);
return 1;
}
}

0 comments on commit 6dff35f

Please sign in to comment.