Skip to content

Commit baa40da

Browse files
authored
Merge pull request #205 from rollybueno/fix/doc-return_value
Docs: Fix return_value() inline documentation
2 parents 633a861 + 045440d commit baa40da

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Config_Command.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,10 +1039,9 @@ private static function fetch_remote_salts( $insecure = false ) {
10391039
*
10401040
* @param string $name
10411041
* @param string $type
1042-
* @param string $type
1042+
* @param array<array{name: string, value: mixed, type: string}> $values
10431043
* @param string $wp_config_file_name Config file name
1044-
* @return string The value of the requested constant or variable as defined in the wp-config.php file; if the
1045-
* requested constant or variable is not defined then the function will print an error and exit.
1044+
* @return mixed|null Original PHP value from wp-config.php or null if not found.
10461045
*/
10471046
private function return_value( $name, $type, $values, $wp_config_file_name ) {
10481047
$results = [];
@@ -1181,7 +1180,7 @@ private function parse_separator( $separator ) {
11811180
* @param $assoc_args
11821181
* @param $args
11831182
*
1184-
* @return string
1183+
* @return mixed
11851184
*/
11861185
protected function get_value( $assoc_args, $args ) {
11871186
$path = $this->get_config_path( $assoc_args );

0 commit comments

Comments
 (0)