wp-cli / wp-config-transformer

Programmatically edit a wp-config.php file
MIT License
80 stars 25 forks source link

Fix incorrect return type in docblock for get_value() #43

Closed SteenSchutt closed 1 year ago

SteenSchutt commented 1 year ago

WPConfigTransformer::get_value() never returns an array, but array is the return type being hinted in the associated docblock. I suggest changing it to string|null. I'm not aware of a situation in which it can return anything else. Feel free to correct me if I'm wrong, but through testing with int, float, string, array, stdClass and undefined variables I haven't managed to get anything else out of it.