<?php private function createConnectionResource(string $host, int $port, int $timeout, bool $ssl)
{
$connection = $ssl ? @ftp_ssl_connect($host, $port, $timeout) : @ftp_connect($host, $port, $timeout);
if ($connection === false) {
throw UnableToConnectToFtpHost::forHost($host, $port, $ssl);