TypeError thrown

ftp_fput(): Argument #1 ($ftp) must be of type FTP\Connection, null given