Skip to content

Commit 8d300a0

Browse files
committed
fix: Always cast to string before trying to trim
1 parent 10e9ec0 commit 8d300a0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/Horde/Core/Factory/HashTable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ public function create(Horde_Injector $injector)
7575
case 'tcp':
7676
foreach ($params['hostspec'] as $key => $val) {
7777
$redis_params[] = array_merge($common, array_filter([
78-
'host' => trim($val),
79-
'port' => isset($params['port'][$key]) ? trim($params['port'][$key]) : null,
78+
'host' => trim((string) $val),
79+
'port' => isset($params['port'][$key]) ? trim((string) $params['port'][$key]) : null,
8080
'scheme' => 'tcp',
8181
]));
8282
}

0 commit comments

Comments
 (0)