diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index ac96d4c4..c75d4e89 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -2516,7 +2516,7 @@ class SFTP extends SSH2 // normally $entries would have at least . and .. but it might not if the directories // permissions didn't allow reading if (empty($entries)) { - $entries = array(); + $entries = []; } unset($entries['.'], $entries['..']);