Use has_config() in get_config() to prevent warnings on null values by dougaxe1 · Pull Request #5880 · wp-cli/wp-cli

@dougaxe1

…f equivelent isset() which throws a warning for null values.

A null value can occur if the option is present, but without a value. Certain config values, such as --url, default to null causing has_config() to be true, while throwing a warning in get_config(). This change provides consistency between has_config() and get_config().

@dougaxe1

@dougaxe1

danielbachhuber

danielbachhuber