Using SFTP with PHPSecLib

Code
<?php

use phpseclib3\Net\SFTP;

$sftp = new SFTP('mydomain.tdl');

if (!
$sftp->login('username''password')) {
    die(
'Login Failed');
}

dump($sftp->nlist());
Result
^ array:3 [
0 => "."
1 => ".."
2 => "index.php"
]
Used Versions
PHP 8.0, Laminas MVC 3.2, Symfony 5.2, Laravel 8.28, PHPUnit 9.5, Doctrine ORM 2.8