type hint fixes

This commit is contained in:
Robin Appelman 2021-03-02 19:17:37 +01:00
commit 0e69997579
11 changed files with 17 additions and 29 deletions

View file

@ -68,12 +68,12 @@ class ServerFactory {
/**
* @param $host
* @param string $host
* @param IAuth $credentials
* @return IServer
* @throws DependencyException
*/
public function createServer($host, IAuth $credentials) {
public function createServer(string $host, IAuth $credentials) {
foreach (self::BACKENDS as $backend) {
if (call_user_func("$backend::available", $this->system)) {
return new $backend($host, $credentials, $this->system, $this->timeZoneProvider, $this->options);