resource|null
private function createSocket() { set_error_handler(static fn() => null); try { return stream_socket_client($this->host, $errno, $errstr, 3) ?: null; } finally { restore_error_handler(); } }