Docs: Fix return_value() inline documentation
Corrected 2 inline docs for return_value():
- 3rd param is
$valuesnot a redundant$type. - It's also an array since we loop the variable and looking for
$value['name']&$value['type']. @returnismixedsince we are either returnWP_CLI::error(), which technicallynullas per https://make.wordpress.org/cli/handbook/references/internal-api/wp-cli-error/, and$result[0]['value']which is either boolean or string from WP config variables
3.
@returnismixedsince we are either returnWP_CLI::error(), which technicallynullas per make.wordpress.org/cli/handbook/references/internal-api/wp-cli-error, and$result[0]['value']which is either boolean or string from WP config variables
I don't think they can be booleans.. Can you double check that?
In any case, let's try to make the types as precise as possible. string|never is more accurate
@returnismixedsince we are either returnWP_CLI::error(), which technicallynullas per make.wordpress.org/cli/handbook/references/internal-api/wp-cli-error, and$result[0]['value']which is either boolean or string from WP config variablesI don't think they can be booleans.. Can you double check that?
In any case, let's try to make the types as precise as possible.
string|neveris more accurate
The WP_CLI:error() here uses exit() so it indeed never, but it's returning mixed as well and not just string. So it should be mixed|never