From d6b2d2938190c4436f3a8d9a2eae37d062611be3 Mon Sep 17 00:00:00 2001 From: Rolly Bueno Date: Sun, 19 Oct 2025 14:50:54 +0800 Subject: [PATCH 1/2] Docs: Fix return_value() inline documentation --- src/Config_Command.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Config_Command.php b/src/Config_Command.php index 9d02c065..aff36e52 100644 --- a/src/Config_Command.php +++ b/src/Config_Command.php @@ -1035,9 +1035,9 @@ private static function fetch_remote_salts( $insecure = false ) { * * @param string $name * @param string $type - * @param string $type + * @param array $values * @param string $wp_config_file_name Config file name - * @return string The value of the requested constant or variable as defined in the wp-config.php file; if the + * @return mixed The value of the requested constant or variable as defined in the wp-config.php file; if the * requested constant or variable is not defined then the function will print an error and exit. */ private function return_value( $name, $type, $values, $wp_config_file_name ) { From 1c622e41fe6782f9b6a19b580ccf686c9f972e35 Mon Sep 17 00:00:00 2001 From: Rolly Bueno Date: Sun, 26 Oct 2025 15:29:51 +0800 Subject: [PATCH 2/2] Fix: Accurate return and data type --- src/Config_Command.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Config_Command.php b/src/Config_Command.php index aff36e52..a1755831 100644 --- a/src/Config_Command.php +++ b/src/Config_Command.php @@ -1035,10 +1035,9 @@ private static function fetch_remote_salts( $insecure = false ) { * * @param string $name * @param string $type - * @param array $values + * @param array $values * @param string $wp_config_file_name Config file name - * @return mixed The value of the requested constant or variable as defined in the wp-config.php file; if the - * requested constant or variable is not defined then the function will print an error and exit. + * @return mixed|null Original PHP value from wp-config.php or null if not found. */ private function return_value( $name, $type, $values, $wp_config_file_name ) { $results = [];