Skip to content

Commit 8869640

Browse files
committed
Update hookId type to string.
1 parent 1addbc6 commit 8869640

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/Core/Hook.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Hook
2727
{
2828
protected \SimpleXMLElement $rawXml;
2929

30-
private int $hookId;
30+
private string $hookId;
3131

3232
private string $meetingId;
3333

@@ -40,14 +40,14 @@ class Hook
4040
public function __construct(\SimpleXMLElement $xml)
4141
{
4242
$this->rawXml = $xml;
43-
$this->hookId = (int) $xml->hookID->__toString();
43+
$this->hookId = $xml->hookID->__toString();
4444
$this->callbackUrl = $xml->callbackURL->__toString();
4545
$this->meetingId = $xml->meetingID->__toString();
4646
$this->permanentHook = 'true' === $xml->permanentHook->__toString();
4747
$this->rawData = 'true' === $xml->rawData->__toString();
4848
}
4949

50-
public function getHookId(): int
50+
public function getHookId(): string
5151
{
5252
return $this->hookId;
5353
}

src/Parameters/HooksDestroyParameters.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@
2222

2323
class HooksDestroyParameters extends BaseParameters
2424
{
25-
private int $hookId;
25+
private string $hookId;
2626

27-
public function __construct(int $hookId)
27+
public function __construct(string $hookId)
2828
{
2929
$this->hookId = $hookId;
3030
}
3131

32-
public function getHookId(): int
32+
public function getHookId(): string
3333
{
3434
return $this->hookId;
3535
}
3636

37-
public function setHookId(int $hookId): self
37+
public function setHookId(string $hookId): self
3838
{
3939
$this->hookId = $hookId;
4040

src/Responses/HooksCreateResponse.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ class HooksCreateResponse extends BaseResponse
3434
*
3535
* @see https://docs.bigbluebutton.org/development/webhooks/#hooksdestroy
3636
*/
37-
public function getHookId(): ?int
37+
public function getHookId(): ?string
3838
{
3939
if (!$this->rawXml->hookID) {
4040
return null;
4141
}
4242

43-
return (int) $this->rawXml->hookID->__toString();
43+
return $this->rawXml->hookID->__toString();
4444
}
4545

4646
public function isPermanentHook(): ?bool

0 commit comments

Comments
 (0)