Skip to content

Commit 5a20a6d

Browse files
committed
make phpstan happy
1 parent ef6785d commit 5a20a6d

File tree

5 files changed

+14
-17
lines changed

5 files changed

+14
-17
lines changed

src/Parameters/BaseParameters.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525
*/
2626
abstract class BaseParameters
2727
{
28-
/**
29-
* @return string
30-
*/
3128
abstract public function getHTTPQuery(): string;
3229

3330
/**

src/Parameters/MetaParameters.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ public function getMeta(string $key)
4040

4141
/**
4242
* @param mixed $value
43+
*
44+
* @return $this
4345
*/
44-
public function addMeta(string $key, $value): MetaParameters
46+
public function addMeta(string $key, $value)
4547
{
4648
$this->meta[$key] = $value;
4749

src/Parameters/UserDataParameters.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ public function getUserData(string $key)
3737

3838
/**
3939
* @param mixed $value
40+
*
41+
* @return $this
4042
*/
41-
public function addUserData(string $key, $value): UserDataParameters
43+
public function addUserData(string $key, $value): self
4244
{
4345
$this->userData[$key] = $value;
4446

src/Responses/BaseJsonResponse.php

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,7 @@ public function getRawJson()
4646
return json_encode($this->data);
4747
}
4848

49-
/**
50-
* @return null|mixed
51-
*/
52-
public function getMessage()
49+
public function getMessage(): ?string
5350
{
5451
if ($this->failed()) {
5552
return $this->data->response->message;
@@ -58,10 +55,7 @@ public function getMessage()
5855
return null;
5956
}
6057

61-
/**
62-
* @return null|mixed
63-
*/
64-
public function getMessageKey()
58+
public function getMessageKey(): ?string
6559
{
6660
if ($this->failed()) {
6761
return $this->data->response->messageKey;
@@ -71,9 +65,11 @@ public function getMessageKey()
7165
}
7266

7367
/**
74-
* @return mixed
68+
* Return will be either 'SUCCESS' or 'FAILED' (nothing else).
69+
*
70+
* @see: https://docs.bigbluebutton.org/development/api/#api-calls
7571
*/
76-
public function getReturnCode()
72+
public function getReturnCode(): string
7773
{
7874
return $this->data->response->returncode;
7975
}

tests/TestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,11 +357,11 @@ protected function getJoinMeetingMock(array $params): JoinMeetingParameters
357357
->setUserId($params['userId'])
358358
->setWebVoiceConf($params['webVoiceConf'])
359359
->setCreationTime($params['creationTime'])
360-
->addUserData('countrycode', $params['userdata_countrycode'])
361360
->setRole($params['role'])
361+
->setExcludeFromDashboard($params['excludeFromDashboard'])
362+
->addUserData('countrycode', $params['userdata_countrycode'])
362363
->addUserData('email', $params['userdata_email'])
363364
->addUserData('commercial', $params['userdata_commercial'])
364-
->setExcludeFromDashboard($params['excludeFromDashboard'])
365365
;
366366
}
367367

0 commit comments

Comments
 (0)