mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/17135] Attempt to fix Psalm issues
PHPBB-17135
This commit is contained in:
parent
0c720eaf7c
commit
e3ed54f0b5
1 changed files with 5 additions and 4 deletions
|
@ -362,9 +362,9 @@ class jabber extends base
|
||||||
/**
|
/**
|
||||||
* Initiates login (using data from contructor, after calling connect())
|
* Initiates login (using data from contructor, after calling connect())
|
||||||
*
|
*
|
||||||
* @return bool|null
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function login(): bool|null
|
public function login(): bool
|
||||||
{
|
{
|
||||||
if (empty($this->features))
|
if (empty($this->features))
|
||||||
{
|
{
|
||||||
|
@ -710,9 +710,9 @@ class jabber extends base
|
||||||
* This handles all the different XML elements
|
* This handles all the different XML elements
|
||||||
*
|
*
|
||||||
* @param array $xml
|
* @param array $xml
|
||||||
* @return bool|null
|
* @return bool
|
||||||
*/
|
*/
|
||||||
function response(array $xml): bool|null
|
function response(array $xml): bool
|
||||||
{
|
{
|
||||||
if (!is_array($xml) || !count($xml))
|
if (!is_array($xml) || !count($xml))
|
||||||
{
|
{
|
||||||
|
@ -769,6 +769,7 @@ class jabber extends base
|
||||||
{
|
{
|
||||||
return $this->response($this->features);
|
return $this->response($this->features);
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'stream:features':
|
case 'stream:features':
|
||||||
|
|
Loading…
Add table
Reference in a new issue