mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
type hint fixes
This commit is contained in:
parent
4d09f2a55c
commit
0e69997579
11 changed files with 17 additions and 29 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue