In WP_Filesystem_Base::chdir|chgrp|chmod() (all mock abstract methods), modify @return to include string so that subclass @returns match.

See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32962 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2015-06-27 00:42:43 +00:00
parent fe617914d4
commit 297b615b99

View File

@ -492,7 +492,7 @@ class WP_Filesystem_Base {
* @since 2.5.0
* @abstract
* @param string $dir The new current directory.
* @return bool Returns true on success or false on failure.
* @return bool|string
*/
public function chdir( $dir ) {
return false;
@ -506,7 +506,7 @@ class WP_Filesystem_Base {
* @param string $file Path to the file.
* @param mixed $group A group name or number.
* @param bool $recursive Optional. If set True changes file group recursively. Defaults to False.
* @return bool Returns true on success or false on failure.
* @return bool|string
*/
public function chgrp( $file, $group, $recursive = false ) {
return false;
@ -520,7 +520,7 @@ class WP_Filesystem_Base {
* @param string $file Path to the file.
* @param int $mode Optional. The permissions as octal number, usually 0644 for files, 0755 for dirs.
* @param bool $recursive Optional. If set True changes file group recursively. Defaults to False.
* @return bool Returns true on success or false on failure.
* @return bool|string
*/
public function chmod( $file, $mode = false, $recursive = false ) {
return false;