Update return value type-hint of GServer::getProtocol

- Address https://github.com/friendica/friendica/issues/11630#issuecomment-1164880874
This commit is contained in:
Hypolite Petovan 2022-06-24 22:37:53 -04:00
parent c5b46fe748
commit 636b84b41c
2 changed files with 12 additions and 12 deletions

View file

@ -2047,10 +2047,10 @@ class GServer
* Fetch the protocol of the given server
*
* @param int $gsid Server id
* @return int
* @return ?int One of Post\DeliveryData protocol constants or null if unknown or gserver is missing
* @throws Exception
*/
public static function getProtocol(int $gsid): int
public static function getProtocol(int $gsid): ?int
{
if (empty($gsid)) {
return null;