mirror of
https://github.com/friendica/friendica
synced 2025-04-25 21:50:12 +00:00
Update return value type-hint of GServer::getProtocol
- Address https://github.com/friendica/friendica/issues/11630#issuecomment-1164880874
This commit is contained in:
parent
c5b46fe748
commit
636b84b41c
2 changed files with 12 additions and 12 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue