Skip to content

Commit

Permalink
Merge pull request #218 from Sebbo94BY/#215-Add-missing-return-type-f…
Browse files Browse the repository at this point in the history
…or-factory

#215: Add missing return types to factory function
  • Loading branch information
Sebbo94BY authored May 31, 2024
2 parents 4b92aae + eed2024 commit 77553bf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/TeamSpeak3.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,16 @@

use Exception;
use PlanetTeamSpeak\TeamSpeak3Framework\Adapter\Adapter;
use PlanetTeamSpeak\TeamSpeak3Framework\Adapter\FileTransfer;
use PlanetTeamSpeak\TeamSpeak3Framework\Adapter\MockServerQuery;
use PlanetTeamSpeak\TeamSpeak3Framework\Adapter\ServerQuery;
use PlanetTeamSpeak\TeamSpeak3Framework\Exception\AdapterException;
use PlanetTeamSpeak\TeamSpeak3Framework\Exception\HelperException;
use PlanetTeamSpeak\TeamSpeak3Framework\Exception\ServerQueryException;
use PlanetTeamSpeak\TeamSpeak3Framework\Helper\Profiler;
use PlanetTeamSpeak\TeamSpeak3Framework\Helper\StringHelper;
use PlanetTeamSpeak\TeamSpeak3Framework\Helper\Uri;
use PlanetTeamSpeak\TeamSpeak3Framework\Node\Host;
use PlanetTeamSpeak\TeamSpeak3Framework\Node\Server;

/**
Expand Down Expand Up @@ -333,13 +336,13 @@ class TeamSpeak3
* - filetransfer://127.0.0.1:30011/
*
* @param string $uri
* @return Server
* @return Host|Server|ServerQuery|MockServerQuery|FileTransfer
* @throws AdapterException
* @throws HelperException
* @throws ServerQueryException
* @throws Exception
*/
public static function factory(string $uri): Server
public static function factory(string $uri): Host|Server|ServerQuery|MockServerQuery|FileTransfer
{
self::init();

Expand Down

0 comments on commit 77553bf

Please sign in to comment.