*/ public function getTrustedServers(): array { if ($this->trustedServers === null) { return []; } $trustedServers = []; try { foreach ($this->trustedServers->getServers() as $server) { if (($server['status'] ?? 0) === TrustedServers::STATUS_OK && str_starts_with($server['url'], 'https://')) { $server['address'] = substr($server['url'], 8); $trustedServers[] = $server; } } } catch (\Exception $e) { $this->logger->warning('Could not get trusted servers', ['exception' => $e]); } return $trustedServers; } }