Skip to content

Commit 7c6c07f

Browse files
committed
Filesystem API: Update WP_Filesystem_FTPext::$link phpdoc type.
This accounts for when `ftp_ssl_connect()`/`ftp_connect()` returns `false` as well as for when `FTP\Connection` is returned instead of `resource` as of PHP 8.1. Props SirLouen, kalpeshh, audrasjb. Fixes #63201. git-svn-id: https://develop.svn.wordpress.org/trunk@61116 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 10290dc commit 7c6c07f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-admin/includes/class-wp-filesystem-ftpext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
1717

1818
/**
1919
* @since 2.5.0
20-
* @var resource
20+
* @var FTP\Connection|resource|false
2121
*/
2222
public $link;
2323

0 commit comments

Comments
 (0)