From 7bb0a17b462ad9c8f05b4a2f3d24f8588aed92f0 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 27 Jul 2021 09:27:51 +0000 Subject: [PATCH] Docs: Correct `@return` type for `WP_Filesystem_Base::getnumchmodfromh()`. Follow-up to [9117]. Props ankitmaru, johnbillion. Fixes #53793. git-svn-id: https://develop.svn.wordpress.org/trunk@51494 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-filesystem-base.php | 4 ++-- src/wp-admin/includes/class-wp-filesystem-direct.php | 2 +- src/wp-admin/includes/class-wp-filesystem-ftpext.php | 2 +- src/wp-admin/includes/class-wp-filesystem-ftpsockets.php | 2 +- src/wp-admin/includes/class-wp-filesystem-ssh2.php | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wp-admin/includes/class-wp-filesystem-base.php b/src/wp-admin/includes/class-wp-filesystem-base.php index 9925ee8a1c..7261fea293 100644 --- a/src/wp-admin/includes/class-wp-filesystem-base.php +++ b/src/wp-admin/includes/class-wp-filesystem-base.php @@ -408,7 +408,7 @@ class WP_Filesystem_Base { * @since 2.5.0 * * @param string $mode string The *nix-style file permission. - * @return int octal representation + * @return string Octal representation. */ public function getnumchmodfromh( $mode ) { $realmode = ''; @@ -831,7 +831,7 @@ class WP_Filesystem_Base { * * @type string $name Name of the file or directory. * @type string $perms *nix representation of permissions. - * @type int $permsn Octal representation of permissions. + * @type string $permsn Octal representation of permissions. * @type string $owner Owner name or ID. * @type int $size Size of file in bytes. * @type int $lastmodunix Last modified unix timestamp. diff --git a/src/wp-admin/includes/class-wp-filesystem-direct.php b/src/wp-admin/includes/class-wp-filesystem-direct.php index 099d9814af..49a51b0ccd 100644 --- a/src/wp-admin/includes/class-wp-filesystem-direct.php +++ b/src/wp-admin/includes/class-wp-filesystem-direct.php @@ -588,7 +588,7 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base { * * @type string $name Name of the file or directory. * @type string $perms *nix representation of permissions. - * @type int $permsn Octal representation of permissions. + * @type string $permsn Octal representation of permissions. * @type string $owner Owner name or ID. * @type int $size Size of file in bytes. * @type int $lastmodunix Last modified unix timestamp. diff --git a/src/wp-admin/includes/class-wp-filesystem-ftpext.php b/src/wp-admin/includes/class-wp-filesystem-ftpext.php index e0ad1c2f53..038d8468ce 100644 --- a/src/wp-admin/includes/class-wp-filesystem-ftpext.php +++ b/src/wp-admin/includes/class-wp-filesystem-ftpext.php @@ -696,7 +696,7 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base { * * @type string $name Name of the file or directory. * @type string $perms *nix representation of permissions. - * @type int $permsn Octal representation of permissions. + * @type string $permsn Octal representation of permissions. * @type string $owner Owner name or ID. * @type int $size Size of file in bytes. * @type int $lastmodunix Last modified unix timestamp. diff --git a/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php b/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php index 25b96f86fe..3c6b55f4ee 100644 --- a/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php +++ b/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php @@ -609,7 +609,7 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base { * * @type string $name Name of the file or directory. * @type string $perms *nix representation of permissions. - * @type int $permsn Octal representation of permissions. + * @type string $permsn Octal representation of permissions. * @type string $owner Owner name or ID. * @type int $size Size of file in bytes. * @type int $lastmodunix Last modified unix timestamp. diff --git a/src/wp-admin/includes/class-wp-filesystem-ssh2.php b/src/wp-admin/includes/class-wp-filesystem-ssh2.php index d23d1f828d..4d01655b70 100644 --- a/src/wp-admin/includes/class-wp-filesystem-ssh2.php +++ b/src/wp-admin/includes/class-wp-filesystem-ssh2.php @@ -738,7 +738,7 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base { * * @type string $name Name of the file or directory. * @type string $perms *nix representation of permissions. - * @type int $permsn Octal representation of permissions. + * @type string $permsn Octal representation of permissions. * @type string $owner Owner name or ID. * @type int $size Size of file in bytes. * @type int $lastmodunix Last modified unix timestamp.