Skip to content

Commit b6e438f

Browse files
committed
Improve code to phpstan level 3
1 parent 53d4060 commit b6e438f

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

phpstan.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
parameters:
2-
level: 1
2+
level: 3
33
paths:
44
- src/
55
- tests/

src/BigBlueButton.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public function getInsertDocumentUrl($createMeetingParams)
201201
/**
202202
* @param $insertDocumentParams InsertDocumentParameters
203203
*
204-
* @return InsertDocumentResponse
204+
* @return CreateMeetingResponse
205205
*
206206
* @throws \RuntimeException
207207
*/

src/Core/Hook.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Hook
3131
protected $rawXml;
3232

3333
/**
34-
* @var string
34+
* @var int
3535
*/
3636
private $hookId;
3737

@@ -71,7 +71,7 @@ public function __construct($xml)
7171
}
7272

7373
/**
74-
* @return string
74+
* @return int
7575
*/
7676
public function getHookId()
7777
{

src/Parameters/InsertDocumentParameters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function getMeetingId()
5050
/**
5151
* @param string $meetingId
5252
*
53-
* @return EndMeetingParameters
53+
* @return InsertDocumentParameters
5454
*/
5555
public function setMeetingId($meetingId)
5656
{

src/Parameters/JoinMeetingParameters.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class JoinMeetingParameters extends UserDataParameters
4040

4141
private ?string $webVoiceConf = null;
4242

43-
private ?string $creationTime = null;
43+
private ?int $creationTime = null;
4444

4545
private ?string $avatarURL = null;
4646

@@ -147,7 +147,7 @@ public function setWebVoiceConf(string $webVoiceConf): self
147147
return $this;
148148
}
149149

150-
public function getCreationTime(): string
150+
public function getCreationTime(): int
151151
{
152152
return $this->creationTime;
153153
}

src/Responses/CreateMeetingResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function getCreationDate()
102102
}
103103

104104
/**
105-
* @return true
105+
* @return bool
106106
*/
107107
public function hasUserJoined()
108108
{

0 commit comments

Comments
 (0)