mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
more type hints
This commit is contained in:
parent
767f6b3f6f
commit
e9f6d00a93
28 changed files with 343 additions and 530 deletions
|
|
@ -73,7 +73,7 @@ class ServerFactory {
|
|||
* @return IServer
|
||||
* @throws DependencyException
|
||||
*/
|
||||
public function createServer(string $host, IAuth $credentials) {
|
||||
public function createServer(string $host, IAuth $credentials): IServer {
|
||||
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