Some fixes:
- $gsid's default value cannot sadly be 0, it now must be null to allow some code work - added some more type-hints - documented a bit more
This commit is contained in:
@@ -2054,7 +2054,7 @@ class GServer
|
||||
* @return int
|
||||
* @throws Exception
|
||||
*/
|
||||
public static function getProtocol(int $gsid)
|
||||
public static function getProtocol(int $gsid): int
|
||||
{
|
||||
if (empty($gsid)) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user