From e3ed54f0b5d9346eda1dc6d0194e7dc5659bb0d9 Mon Sep 17 00:00:00 2001 From: rxu Date: Mon, 24 Jun 2024 20:47:42 +0700 Subject: [PATCH] [ticket/17135] Attempt to fix Psalm issues PHPBB-17135 --- phpBB/phpbb/messenger/method/jabber.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/phpBB/phpbb/messenger/method/jabber.php b/phpBB/phpbb/messenger/method/jabber.php index 8e5e0a4e88..199adcd65a 100644 --- a/phpBB/phpbb/messenger/method/jabber.php +++ b/phpBB/phpbb/messenger/method/jabber.php @@ -362,9 +362,9 @@ class jabber extends base /** * 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)) { @@ -710,9 +710,9 @@ class jabber extends base * This handles all the different XML elements * * @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)) { @@ -769,6 +769,7 @@ class jabber extends base { return $this->response($this->features); } + return false; break; case 'stream:features':