You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ext-ftp no longer uses resources and now uses \FTP\Connection. But all the safe functions are type-hinted with resource.
Wrong:
/** * Sends an ALLO command to the remote FTP server to * allocate space for a file to be uploaded. * * @param resource $ftp An FTP\Connection instance. * @param int $size The number of bytes to allocate. * @param string|null $response A textual representation of the servers response will be returned by * reference in response if a variable is provided. * @throws FtpException * */functionftp_alloc($ftp, int$size, ?string &$response = null): void {}
Correct:
/** * Sends an ALLO command to the remote FTP server to * allocate space for a file to be uploaded. * * @param \FTP\Connection $ftp An FTP\Connection instance. * @param int $size The number of bytes to allocate. * @param string|null $response A textual representation of the servers response will be returned by * reference in response if a variable is provided. * @throws FtpException * */functionftp_alloc(\FTP\Connection$ftp, int$size, ?string &$response = null): void {}
The text was updated successfully, but these errors were encountered:
ext-ftp no longer uses resources and now uses
\FTP\Connection
. But all the safe functions are type-hinted withresource
.Wrong:
Correct:
The text was updated successfully, but these errors were encountered: