Closed drzraf closed 4 months ago
class-wp-upgrader.php
is a file in WordPress core, so this is not really an issue with WP-CLI.
These types of issues are usually caused by premium plugins messing with upgrades.
In this case here, the $source_files = array_keys( $wp_filesystem->dirlist( $remote_source ) );
line could use some hardening, as dirlist
can indeed return false
.
I suggest opening an enhancement ticket on Trac to add some hardening there.
Closing this one because, again, this is not an issue in WP-CLI.
Bug Report
Describe the current, buggy behavior
Describe how other contributors can replicate this bug
wp plugin update --all --patch --quiet --no-color
Describe what you would expect as the correct outcome
A clear error message
Let us know what environment you are running this on
Provide a possible solution
Seems it happened just once probably due to a specific plugin messing up with repository's version/URL/.... One among these: