summaryrefslogtreecommitdiffstats
path: root/library/Icingadb/Command/Transport/CommandTransport.php
diff options
context:
space:
mode:
Diffstat (limited to 'library/Icingadb/Command/Transport/CommandTransport.php')
-rw-r--r--library/Icingadb/Command/Transport/CommandTransport.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/Icingadb/Command/Transport/CommandTransport.php b/library/Icingadb/Command/Transport/CommandTransport.php
index ea125bc..952cb14 100644
--- a/library/Icingadb/Command/Transport/CommandTransport.php
+++ b/library/Icingadb/Command/Transport/CommandTransport.php
@@ -50,7 +50,7 @@ class CommandTransport implements CommandTransportInterface
/**
* Create a transport from config
*
- * @param ConfigObject $config
+ * @param ConfigObject<string> $config
*
* @return ApiCommandTransport
*
@@ -59,7 +59,7 @@ class CommandTransport implements CommandTransportInterface
public static function createTransport(ConfigObject $config): ApiCommandTransport
{
$config = clone $config;
- switch (strtolower($config->transport)) {
+ switch (strtolower($config->transport ?? '')) {
case ApiCommandTransport::TRANSPORT:
$transport = new ApiCommandTransport();
break;